Click or drag to resize
JsonObjectAddAndGetTJsonValue Method
Adds new member into object and returns added value (actually the passed parameter). This is handy for one-line adding and variable initalization:
Examples
Dim myArray = myObject.AddAndGet("array", new JsonArray())

Namespace: Dextronet.Jsonie
Assembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax
protected TJsonValue AddAndGet<TJsonValue>(
	string key,
	TJsonValue value
)
where TJsonValue : JsonValue

Parameters

key
Type: SystemString
The key of the value.
value
Type: TJsonValue
The value to add.

Type Parameters

TJsonValue
Type of the value being added.

Return Value

Type: TJsonValue
The value of the added member.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is null.
ArgumentExceptionAn property with the same key already exists.
See Also