CompareTo()

IComparable::CompareTo(T) method

Compares the current object with the specified object.

virtual int System::IComparable<T>::CompareTo(T other)=0

Arguments

ParameterTypeDescription
otherTThe object to compare with the current object

Return Value

A negative number if the current object precedes the specified object is the sort order; 0 if the compared objects are equal; positive number if the current object follows the specified object in the sort order

See Also