Skip to content

JsonElement.Source.AddAsProperty Method

Definition

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

Overloads

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

AddAsProperty(ReadOnlySpan<byte>, 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 ComplexValueBuilder
escapeName bool (optional)
nameRequiresUnescaping bool (optional)

Applies To

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

AddAsProperty(string, ComplexValueBuilder)

Source: JsonElement.Mutable.cs

public void AddAsProperty(string name, ref ComplexValueBuilder valueBuilder)

Parameters

Name Type Description
name string
valueBuilder ComplexValueBuilder

Applies To

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

AddAsProperty(ReadOnlySpan<char>, ComplexValueBuilder)

Source: JsonElement.Mutable.cs

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

Parameters

Name Type Description
name ReadOnlySpan<char>
valueBuilder 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