Skip to content

ComplexValueBuilder.AddPropertyRawString Method

Definition

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

Overloads

Method Description
AddPropertyRawString(ReadOnlySpan<byte>, ReadOnlySpan<byte>, bool, bool, bool) Adds a property with a raw string value to the current object, with control over escaping and unescaping.
AddPropertyRawString(string, ReadOnlySpan<byte>, bool) Adds a property with a raw string value.
AddPropertyRawString(ReadOnlySpan<char>, ReadOnlySpan<byte>, bool) Adds a property with a raw string value.

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

Source: ComplexValueBuilder.cs

Adds a property with a raw string value to the current object, with control over escaping and unescaping.

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

Parameters

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

Applies To

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

AddPropertyRawString(string, ReadOnlySpan<byte>, bool)

Source: ComplexValueBuilder.cs

Adds a property with a raw string value.

public void AddPropertyRawString(string propertyName, ReadOnlySpan<byte> value, bool valueRequiresUnescaping)

Parameters

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

Applies To

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

AddPropertyRawString(ReadOnlySpan<char>, ReadOnlySpan<byte>, bool)

Source: ComplexValueBuilder.cs

Adds a property with a raw string value.

public void AddPropertyRawString(ReadOnlySpan<char> propertyName, ReadOnlySpan<byte> value, bool valueRequiresUnescaping)

Parameters

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

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