JsonValueExtensionsGetDecimalOrDefault Method

Overload List

GetDecimalOrDefault(JsonValue, JsonValueType) Gets the specified JsonValue as a Decimal value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Decimal; otherwise, returns 0.0.
GetDecimalOrDefault(JsonValue, Decimal, JsonValueType) Gets the specified JsonValue as a Decimal value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Decimal; otherwise, returns defaultValue.

See Also