JsonValue   Conversion (JsonValue to NullableDouble)

Performs an explicit conversion from JsonValue to nullable double. The conversion succeeds if the Type property is Null or Number; otherwise, an InvalidCastException is thrown.

Definition

Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
C#
public static explicit operator double? (
	JsonValue value
)

Parameters

value  JsonValue
The value to be converted to a double.

Return Value

NullableDouble
A double instance that represents the original value.

Exceptions

InvalidCastExceptionvalue does not represent a numeric value.

See Also