Skip to content

JsonString.ValueEquals Method

Definition

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

Overloads

Method Description
ValueEquals(ReadOnlySpan<byte>) Compare with a UTF-8 string.
ValueEquals(ReadOnlySpan<char>) Compare with a string.
ValueEquals(string) Compare with a string.

ValueEquals(ReadOnlySpan<byte>)

Compare with a UTF-8 string.

public bool ValueEquals(ReadOnlySpan<byte> utf8Text)

Parameters

Name Type Description
utf8Text ReadOnlySpan<byte>

Returns

bool

true if the values are equal.

Applies To

Product Versions
.NET 9, 10

ValueEquals(ReadOnlySpan<char>)

Compare with a string.

public bool ValueEquals(ReadOnlySpan<char> text)

Parameters

Name Type Description
text ReadOnlySpan<char>

Returns

bool

true if the values are equal.

Applies To

Product Versions
.NET 9, 10

ValueEquals(string)

Compare with a string.

public bool ValueEquals(string text)

Parameters

Name Type Description
text string

Returns

bool

true if the values are equal.

Applies To

Product Versions
.NET 9, 10

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