JsonObjectInsert Method

Inserts an item to the JsonObject at the specified index.

Definition

Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
C#
public void Insert(
	int index,
	JsonProperty item
)

Parameters

index  Int32
The zero-based index at which item should be inserted.
item  JsonProperty
The JsonProperty to insert into the JsonObject.

Implements

IListTInsert(Int32, T)

Exceptions

ArgumentExceptionThe Name of the item is .
ArgumentOutOfRangeExceptionindex is less than zero or greater than Count.

See Also