Method CompareTo
CompareTo(ReadOnlyExSpan<char>, ReadOnlyExSpan<char>, StringComparison)
Compares the specified span and other using the specified comparisonType,
and returns an integer that indicates their relative position in the sort order.
public static int CompareTo(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.