KGy SOFT

JsonValue  Conversion (JsonValue to NullableBoolean)

KGy SOFT JSON Libraries Help
Performs an explicit conversion from JsonValue to nullable bool. The conversion succeeds if the Type property is Null or Boolean; otherwise, an InvalidCastException is thrown.

Namespace:  KGySoft.Json
Assembly:  KGySoft.Json (in KGySoft.Json.dll) Version: 2.0.1
Syntax

public static explicit operator bool? (
	JsonValue value
)

Parameters

value
Type: KGySoft.JsonJsonValue
The value to be converted to a bool.

Return Value

Type: NullableBoolean
A bool instance that represents the original value.
Exceptions

ExceptionCondition
InvalidCastExceptionvalue does not represent a boolean value.
See Also

Reference