This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Assembly: mscorlib (in mscorlib.dll)
private abstract CompareTo : obj:Object -> int private override CompareTo : obj:Object -> int
- Type: System.Object
An object to compare with this instance, or a null reference (Nothing in Visual Basic).
Return ValueType: System.Int32
A signed integer that indicates the relative order of this instance and obj.
Less than zero
This instance is false and obj is true.
This instance and obj are equal (either both are true or both are false).
Greater than zero
This instance is true and obj is false.
obj is a null reference (Nothing in Visual Basic).