JsonValueExtensionsGetInt16OrDefault Method

Overload List

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

See Also