JsonArrayInsert Method

Inserts an item to the JsonArray 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,
	JsonValue item
)

Parameters

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

Implements

IListTInsert(Int32, T)

Exceptions

ArgumentOutOfRangeExceptionindex is less than zero or greater than Length.

See Also