Skip to content

IMutableJsonDocument.MoveItemToArray Method

Definition

Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: IMutableJsonDocument.cs

MoveItemToArray(int, int, int, int)

Moves an array item from a source array into a destination array at the specified index. Handles same-array moves with post-removal index semantics.

public abstract void MoveItemToArray(int srcArrayIndex, int srcIndex, int dstArrayIndex, int destIndex)

Parameters

Name Type Description
srcArrayIndex int The start index of the source array.
srcIndex int The zero-based index of the source item.
dstArrayIndex int The start index of the destination array.
destIndex int The zero-based index at which to insert in the destination array (post-removal semantics for same-array moves).

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