Method Equals
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
spanReadOnlyExSpan<char>The source span.
otherReadOnlyExSpan<char>The value to compare with the source span.
comparisonTypeStringComparisonOne of the enumeration values that determines how the
spanandotherare compared.
Returns
Exceptions
- ExSpanTooLongException
Throws an exception if the length is out of the range of Int32.