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.
Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 2.0.1
Syntax
Parameters
- value
- Type: KGySoft.JsonJsonValue
The value to be converted to a double.
Return Value
Type: NullableDoubleA double instance that represents the original value.
Exceptions
Exception | Condition |
---|---|
InvalidCastException | value does not represent a numeric value. |
See Also