Determines whether the current collection object precedes, occurs in the same position as, or follows another object in the sort order.
Assembly: mscorlib (in mscorlib.dll)
private: virtual int CompareTo( Object^ other, IComparer^ comparer ) sealed = IStructuralComparable::CompareTo
- Type: System::Object
The object to compare with the current instance.
- Type: System.Collections::IComparer
An object that compares the current object and other.
Return ValueType: System::Int32
An integer that indicates the relationship of the current collection object to other, as shown in the following table.
The current instance precedes other.
The current instance and other are equal.
The current instance follows other.