Skip to content

IMutableJsonDocument.CopyValueToProperty Method

Definition

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

CopyValueToProperty(int, int, ReadOnlySpan<byte>)

Copies a value and sets it as a property on a destination object. If the property already exists, it is replaced.

public abstract void CopyValueToProperty(int srcValueIndex, int dstObjectIndex, ReadOnlySpan<byte> propertyName)

Parameters

Name Type Description
srcValueIndex int The byte index of the source value.
dstObjectIndex int The start index of the destination object.
propertyName ReadOnlySpan<byte> The UTF-8 property 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