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
span
ReadOnlyExSpan<char>The source span.
other
ReadOnlyExSpan<char>The value to compare with the source span.
comparisonType
StringComparisonOne of the enumeration values that determines how the
span
andother
are compared.
Returns
Exceptions
- ExSpanTooLongException
Throws an exception if the length is out of the range of Int32.