Click or drag to resize
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.Jsonie
Assembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax
public JsonDynamic GetOrAdd(
	string key,
	JsonValue addValue
)

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: JsonDynamic
Value stored under given key casted to dynamic.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is Nothing.
InvalidCastExceptionIf this object does not wrap JsonObject.
See Also