Skip to content

IMutableJsonDocument.MovePropertyToArray Method

Definition

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

MovePropertyToArray(int, ReadOnlySpan<byte>, int, int)

Moves a property from a source object into a destination array at the specified index.

public abstract bool MovePropertyToArray(int srcObjectIndex, ReadOnlySpan<byte> srcPropertyName, int dstArrayIndex, int destIndex)

Parameters

Name Type Description
srcObjectIndex int The start index of the source object.
srcPropertyName ReadOnlySpan<byte> The UTF-8 name of the source property.
dstArrayIndex int The start index of the destination array.
destIndex int The zero-based index at which to insert in the destination array.

Returns

bool

true if the property was found and moved; otherwise, false.

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