Click or drag to resize
JsonValueExtensionsAsBoolean Method
Casts (CType) value to JsonBool.

Namespace: Dextronet.Jsonie.Extensions
Assembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax
public static JsonBool AsBoolean(
	this JsonValue value
)

Parameters

value
Type: Dextronet.JsonieJsonValue
Value which will be casted.

Return Value

Type: JsonBool
Casted value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type JsonValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
InvalidCastExceptionIf value is not type of JsonBool.
See Also