Table of Contents

Method Equals

Namespace
Zyl.ExSpans
Assembly
ExSpans.dll

Equals(ReadOnlyExSpan<char>, ReadOnlyExSpan<char>, StringComparison)

Determines whether this span and the specified other span have the same characters when compared using the specified comparisonType option.

public static bool Equals(this ReadOnlyExSpan<char> span, ReadOnlyExSpan<char> other, StringComparison comparisonType)

Parameters

span ReadOnlyExSpan<char>

The source span.

other ReadOnlyExSpan<char>

The value to compare with the source span.

comparisonType StringComparison

One of the enumeration values that determines how the span and other are compared.

Returns

bool

Exceptions

ExSpanTooLongException

Throws an exception if the length is out of the range of Int32.