IMutableJsonDocument.MoveItemToProperty Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: IMutableJsonDocument.cs
MoveItemToProperty(int, int, int, ReadOnlySpan<byte>)
Moves an array item from a source array to a destination object as a new property. Handles removing existing destination properties.
public abstract void MoveItemToProperty(int srcArrayIndex, int srcIndex, int dstObjectIndex, ReadOnlySpan<byte> destPropertyName)
Parameters
| Name | Type | Description |
|---|---|---|
srcArrayIndex |
int |
The start index of the source array. |
srcIndex |
int |
The zero-based index of the source item. |
dstObjectIndex |
int |
The start index of the destination object. |
destPropertyName |
ReadOnlySpan<byte> |
The UTF-8 name for the destination property. |
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