JsonArrayItem Property

Gets or sets the element at the specified index. When the indexer is read, using an invalid index returns Undefined, just like in JavaScript.

Definition

Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
C#
public JsonValue this[
	int index
] { get; set; }

Parameters

index  Int32
The zero-based index of the element to get or set.

Return Value

JsonValue
The element at the specified index.

Implements

IListTItemInt32

Exceptions

ArgumentOutOfRangeExceptionThe indexer is set and index is less than zero or greater or equal to Length.

See Also