Skip to content

JsonElement.ObjectBuilder.AddFormattedNumber Method

Definition

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

Overloads

Method Description
AddFormattedNumber(ReadOnlySpan<byte>, ReadOnlySpan<byte>, bool, bool)
AddFormattedNumber(ReadOnlySpan<char>, ReadOnlySpan<byte>)

AddFormattedNumber(ReadOnlySpan<byte>, ReadOnlySpan<byte>, bool, bool)

Source: JsonElement.ObjectBuilder.cs

public void AddFormattedNumber(ReadOnlySpan<byte> propertyName, ReadOnlySpan<byte> value, bool escapeName, bool nameRequiresUnescaping)

Parameters

Name Type Description
propertyName ReadOnlySpan<byte>
value ReadOnlySpan<byte>
escapeName bool (optional)
nameRequiresUnescaping bool (optional)

Applies To

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

AddFormattedNumber(ReadOnlySpan<char>, ReadOnlySpan<byte>)

Source: JsonElement.ObjectBuilder.cs

public void AddFormattedNumber(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value)

Parameters

Name Type Description
propertyName ReadOnlySpan<char>
value ReadOnlySpan<byte>

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