IJsonDocument.GetArrayInsertionIndex Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: IJsonDocument.cs
GetArrayInsertionIndex(int, int)
Gets DB index of the item at the array index within the array that starts at currentIndex.
public abstract int GetArrayInsertionIndex(int currentIndex, int arrayIndex)
Parameters
| Name | Type | Description |
|---|---|---|
currentIndex |
int |
The current index. |
arrayIndex |
int |
The array index. |
Returns
Remarks
Note that this is the DB index in the current document. Contrast with GetArrayIndexElement overloads which return the document and index of the actual element value.
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