Skip to content

IJsonDocument.GetArrayIndexElement Method

Definition

Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll

Overloads

Method Description
GetArrayIndexElement(int, int) Gets the element at the specified array index within the current index.
GetArrayIndexElement(int, int) Gets the element at the specified array index within the current index.
GetArrayIndexElement(int, int, IJsonDocument, int) Gets the element at the specified array index within the current index.

GetArrayIndexElement(int, int)

Source: IJsonDocument.cs

Gets the element at the specified array index within the current index.

public abstract JsonElement GetArrayIndexElement(int currentIndex, int arrayIndex)

Parameters

Name Type Description
currentIndex int The current index.
arrayIndex int The array index.

Returns

JsonElement

The JSON element.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

GetArrayIndexElement(int, int)

Source: IJsonDocument.cs

Gets the element at the specified array index within the current index.

public abstract TElement GetArrayIndexElement<TElement>(int currentIndex, int arrayIndex)
    where TElement : struct, IJsonElement<TElement>

Type Parameters

Parameter Description
TElement The type of the JSON element.

Parameters

Name Type Description
currentIndex int The current index.
arrayIndex int The array index.

Returns

TElement

The JSON element.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

GetArrayIndexElement(int, int, IJsonDocument, int)

Source: IJsonDocument.cs

Gets the element at the specified array index within the current index.

public abstract void GetArrayIndexElement(int currentIndex, int arrayIndex, out IJsonDocument parentDocument, out int parentDocumentIndex)

Parameters

Name Type Description
currentIndex int The current index.
arrayIndex int The array index.
parentDocument IJsonDocument Produces the parent document of the result.
parentDocumentIndex int Produces the parent document index.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue