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.JsonieAssembly: Dextronet.Jsonie (in Dextronet.Jsonie.dll) Version: 1.0.0.0
Syntax protected TJsonValue AddAndGet<TJsonValue>(
string key,
TJsonValue value
)
where TJsonValue : JsonValue
Protected Function AddAndGet(Of TJsonValue As JsonValue) (
key As String,
value As TJsonValue
) As TJsonValue
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:
TJsonValueThe value of the added member.
Exceptions See Also