StringSegmentCompareTo(Object) Method
Compares this instance to the specified object 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: 8.1.0
public int CompareTo(
Object? obj
)
Public Function CompareTo (
obj As Object
) As Integer
public:
virtual int CompareTo(
Object^ obj
) sealed
abstract CompareTo :
obj : Object -> int
override CompareTo :
obj : Object -> int
- obj Object
- A StringSegment or string object 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
obj parameter.
IComparableCompareTo(Object) Unlike the
String.CompareTo method, this one performs an ordinal comparison.
Use the
Compare methods to perform a custom comparison.