StringSegmentCompareTo(StringSegment) Method
Compares this instance to the specified
StringSegment using ordinal comparison, and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified
StringSegment.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public int CompareTo(
StringSegment other
)
Public Function CompareTo (
other As StringSegment
) As Integer
public:
virtual int CompareTo(
StringSegment other
) sealed
abstract CompareTo :
other : StringSegment -> int
override CompareTo :
other : StringSegment -> int
- other StringSegment
- The StringSegment to compare with this instance.
Int32A 32-bit signed integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the
other parameter.
IComparableTCompareTo(T) Unlike the
String.CompareTo method, this one performs an ordinal comparison.
Use the
Compare methods to perform a custom comparison.