Click or drag to resize
JsonDynamicGetOrDefault Method (String, JsonDynamic)
Gets value stored under given key and casts it to 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,
	JsonDynamic defaultValue
)

Parameters

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

Return Value

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