JsonDynamicGetOrAdd Method (String, JsonValue) |
Gets the member stored under given key. If key does not exist provided value is stored as new member.
Namespace: Dextronet.JsonieAssembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax public JsonDynamic GetOrAdd(
string key,
JsonValue addValue
)
Public Function GetOrAdd (
key As String,
addValue As JsonValue
) As JsonDynamic
Parameters
- key
- Type: SystemString
The key under which is array stored. - addValue
- Type: Dextronet.JsonieJsonValue
The value to add if specified member does not exist.
Return Value
Type:
JsonDynamicValue stored under given key casted to dynamic.
Exceptions See Also