Click or drag to resize
JsonDynamicGetOrDefault Method (String, JsonValue)
Gets value stored under given key and returns it as dynamic type. 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 JsonDynamic GetOrDefault(
	string key,
	JsonValue defaultValue = null
)

Parameters

key
Type: SystemString
The key under which is member stored.
defaultValue (Optional)
Type: Dextronet.JsonieJsonValue
Default value returned in case no such member exists.

Return Value

Type: JsonDynamic
Value stored under given key as dynamic.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
InvalidCastExceptionIf this object does not wrap JsonObject.
See Also