Click or drag to resize
JsonObjectGetOrDefault Method (String, Double)
Gets value stored under given key and casts it to decimal. If not such member exists than defaultValue is returned.

Namespace: Dextronet.Jsonie
Assembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax
public JsonNumber GetOrDefault(
	string key,
	double defaultValue
)

Parameters

key
Type: SystemString
The key under which is value stored.
defaultValue
Type: SystemDouble
Default value returned in case no such member exists.

Return Value

Type: JsonNumber
Value stored under given key casted to String.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
InvalidCastExceptionIf property with given key exist and is not of Double type.
See Also