StringSegment.Equality(StringSegment, StringSegment) Operator

Definition

Checks if two specified StringSegment have the same value.

public static bool operator == (Microsoft.Extensions.Primitives.StringSegment left, Microsoft.Extensions.Primitives.StringSegment right);

Parameters

left
StringSegment

The first StringSegment to compare, or null.

right
StringSegment

The second StringSegment to compare, or null.

Returns

true if the value of left is the same as the value of right; otherwise, false.

Applies to

Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)