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.JsonieAssembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax public JsonDynamic GetOrDefault(
string key,
JsonDynamic defaultValue
)
Public Function GetOrDefault (
key As String,
defaultValue As JsonDynamic
) As JsonDynamic
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:
JsonDynamicValue stored under given key as dynamic.
Exceptions See Also