Skip to content

ComplexValueBuilder.AddPropertyNull Method

Definition

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

Overloads

Method Description
AddPropertyNull(ReadOnlySpan<byte>) Adds a property with a null value to the current object.
AddPropertyNull(ReadOnlySpan<byte>, bool, bool) Adds a property with a null value to the current object, with control over escaping.
AddPropertyNull(ReadOnlySpan<char>) Adds a property with a null value to the current object.

AddPropertyNull(ReadOnlySpan<byte>)

Source: ComplexValueBuilder.cs

Adds a property with a null value to the current object.

public void AddPropertyNull(ReadOnlySpan<byte> propertyName)

Parameters

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

Applies To

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

AddPropertyNull(ReadOnlySpan<byte>, bool, bool)

Source: ComplexValueBuilder.cs

Adds a property with a null value to the current object, with control over escaping.

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

Parameters

Name Type Description
propertyName ReadOnlySpan<byte> The property name as a UTF-8 byte span.
escapeName bool Whether to escape the property name.
nameRequiresUnescaping bool Whether the property name requires unescaping.

Applies To

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

AddPropertyNull(ReadOnlySpan<char>)

Source: ComplexValueBuilder.cs

Adds a property with a null value to the current object.

public void AddPropertyNull(ReadOnlySpan<char> propertyName)

Parameters

Name Type Description
propertyName ReadOnlySpan<char> The property name as a character 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