Skip to content

ComplexValueBuilder.AddPropertyFormattedNumber Method

Definition

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

Overloads

Method Description
AddPropertyFormattedNumber(ReadOnlySpan<byte>, ReadOnlySpan<byte>) Adds a property with a formatted number value to the current object.
AddPropertyFormattedNumber(ReadOnlySpan<byte>, ReadOnlySpan<byte>, bool, bool) Adds a property with a formatted number value to the current object.
AddPropertyFormattedNumber(string, ReadOnlySpan<byte>) Adds a property with a formatted number value to the current object.
AddPropertyFormattedNumber(ReadOnlySpan<char>, ReadOnlySpan<byte>) Adds a property with a formatted number value to the current object.

AddPropertyFormattedNumber(ReadOnlySpan<byte>, ReadOnlySpan<byte>)

Source: ComplexValueBuilder.cs

Adds a property with a formatted number value to the current object.

public void AddPropertyFormattedNumber(ReadOnlySpan<byte> propertyName, ReadOnlySpan<byte> value)

Parameters

Name Type Description
propertyName ReadOnlySpan<byte> The property name as a UTF-8 byte span.
value ReadOnlySpan<byte> The number value as a UTF-8 byte span.

Applies To

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

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

Source: ComplexValueBuilder.cs

Adds a property with a formatted number value to the current object.

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

Parameters

Name Type Description
propertyName ReadOnlySpan<byte> The property name as a UTF-8 byte span.
value ReadOnlySpan<byte> The number value as a UTF-8 byte span.
escapeName bool
nameRequiresUnescaping bool

Applies To

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

AddPropertyFormattedNumber(string, ReadOnlySpan<byte>)

Source: ComplexValueBuilder.cs

Adds a property with a formatted number value to the current object.

public void AddPropertyFormattedNumber(string propertyName, ReadOnlySpan<byte> value)

Parameters

Name Type Description
propertyName string The property name as a string.
value ReadOnlySpan<byte> The number value as a UTF-8 byte span.

Applies To

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

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

Source: ComplexValueBuilder.cs

Adds a property with a formatted number value to the current object.

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

Parameters

Name Type Description
propertyName ReadOnlySpan<char> The property name as a UTF-16 span.
value ReadOnlySpan<byte> The number value as a UTF-8 byte span.

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