Method SequenceCompareTo
SequenceCompareTo<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Determines the relative order of the sequences being compared by comparing the elements using IComparable{T}.CompareTo(T).
public static int SequenceCompareTo<T>(this ExSpan<T> span, ReadOnlyExSpan<T> other) where T : IComparable<T>?
Parameters
span
ExSpan<T>other
ReadOnlyExSpan<T>
Returns
Type Parameters
T
SequenceCompareTo<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Determines the relative order of the sequences being compared by comparing the elements using IComparable{T}.CompareTo(T).
public static int SequenceCompareTo<T>(this ReadOnlyExSpan<T> span, ReadOnlyExSpan<T> other) where T : IComparable<T>?
Parameters
span
ReadOnlyExSpan<T>other
ReadOnlyExSpan<T>
Returns
Type Parameters
T
SequenceCompareTo<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IComparer<T>?)
Determines the relative order of the sequences being compared by comparing the elements using IComparable{T}.CompareTo(T).
public static int SequenceCompareTo<T>(this ReadOnlyExSpan<T> span, ReadOnlyExSpan<T> other, IComparer<T>? comparer = null)
Parameters
span
ReadOnlyExSpan<T>other
ReadOnlyExSpan<T>comparer
IComparer<T>
Returns
Type Parameters
T
SequenceCompareTo<T>(ExSpan<T>, ReadOnlyExSpan<T>, IComparer<T>?)
Determines the relative order of the sequences being compared by comparing the elements using IComparable{T}.CompareTo(T).
public static int SequenceCompareTo<T>(this ExSpan<T> span, ReadOnlyExSpan<T> other, IComparer<T>? comparer = null)
Parameters
span
ExSpan<T>other
ReadOnlyExSpan<T>comparer
IComparer<T>
Returns
Type Parameters
T