StringSegmentComparerCompare(ReadOnlySpanChar, ReadOnlySpanChar) Method

When overridden in a derived class, compares two ReadOnlySpan<char> instances and returns an indication of their relative sort order.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public abstract int Compare(
	ReadOnlySpan<char> x,
	ReadOnlySpan<char> y
)

Parameters

x  ReadOnlySpanChar
A ReadOnlySpan<char> to compare to y.
y  ReadOnlySpanChar
A ReadOnlySpan<char> to compare to x.

Return Value

Int32
A signed integer that indicates the relative order of x and y.

See Also