Skip to content

IJsonDocument.GetPropertyNameRaw Method

Definition

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

Overloads

Method Description
GetPropertyNameRaw(int) Gets the raw property name as a byte span for the specified index.
GetPropertyNameRaw(int, bool) Gets the raw property name as a byte span for the specified index.

GetPropertyNameRaw(int)

Source: IJsonDocument.cs

Gets the raw property name as a byte span for the specified index.

public abstract ReadOnlySpan<byte> GetPropertyNameRaw(int index)

Parameters

Name Type Description
index int The index of the property.

Returns

ReadOnlySpan<byte>

The raw property name as a byte span.

Applies To

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

GetPropertyNameRaw(int, bool)

Source: IJsonDocument.cs

Gets the raw property name as a byte span for the specified index.

public abstract ReadOnlyMemory<byte> GetPropertyNameRaw(int index, bool includeQuotes)

Parameters

Name Type Description
index int The index of the property.
includeQuotes bool Whether to include quotes in the raw property name.

Returns

ReadOnlyMemory<byte>

The raw property name as a 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