Skip to content

IMutableJsonDocument.InsertPropertyFromDocument Method

Definition

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

InsertPropertyFromDocument(int, int, int, ReadOnlySpan<byte>, IJsonDocument, int)

Inserts a property name row followed by element rows from a source document, bypassing ComplexValueBuilder.

public abstract void InsertPropertyFromDocument(int complexObjectStartIndex, int targetIndex, int memberCount, ReadOnlySpan<byte> propertyName, IJsonDocument sourceDocument, int sourceIndex)

Parameters

Name Type Description
complexObjectStartIndex int The start index of the complex object.
targetIndex int The index at which to insert.
memberCount int The number of members to insert.
propertyName ReadOnlySpan<byte> The UTF-8 property name to escape and store.
sourceDocument IJsonDocument The source document containing the value element.
sourceIndex int The index of the value element in the source document.

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