StringSegmentComparerCompare(StringSegment, StringSegment) Method

When overridden in a derived class, compares two StringSegment 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(
	StringSegment x,
	StringSegment y
)

Parameters

x  StringSegment
A StringSegment to compare to y.
y  StringSegment
A StringSegment to compare to x.

Return Value

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

Implements

IComparerTCompare(T, T)

See Also