Skip to content

JsonElement.Source.AddAsProperty Method

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll

Overloads

Method Description
AddAsProperty(ReadOnlySpan<byte>, ref ComplexValueBuilder, bool, bool)
AddAsProperty(string, ref ComplexValueBuilder)
AddAsProperty(ReadOnlySpan<char>, ref ComplexValueBuilder)

AddAsProperty(ReadOnlySpan<byte>, ref ComplexValueBuilder, bool, bool)

Source: JsonElement.Mutable.cs

public void AddAsProperty(ReadOnlySpan<byte> utf8Name, ref ComplexValueBuilder valueBuilder, bool escapeName, bool nameRequiresUnescaping)

Parameters

Name Type Description
utf8Name ReadOnlySpan<byte>
valueBuilder ref ComplexValueBuilder
escapeName bool (optional)
nameRequiresUnescaping bool (optional)

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

AddAsProperty(string, ref ComplexValueBuilder)

Source: JsonElement.Mutable.cs

public void AddAsProperty(string name, ref ComplexValueBuilder valueBuilder)

Parameters

Name Type Description
name string
valueBuilder ref ComplexValueBuilder

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

AddAsProperty(ReadOnlySpan<char>, ref ComplexValueBuilder)

Source: JsonElement.Mutable.cs

public void AddAsProperty(ReadOnlySpan<char> name, ref ComplexValueBuilder valueBuilder)

Parameters

Name Type Description
name ReadOnlySpan<char>
valueBuilder ref ComplexValueBuilder

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