BCL mscorlib [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ] 1.0.5000.0 2.0.0.0

Implemented by classes that support an ordering of instances of the class.

contains the method. The consumer of an object should call this method when sorting instances of a class.

- Method
  System.Int32 `` The to compare to the current instance.

  Returns the sort order of the current instance compared to the specified object.

  The return value is a negative number, zero, or a positive number reflecting the sort order of the current instance as compared to . For non-zero return values, the exact value returned by this method is unspecified. The following table defines the return value:

  Returned Value
  Description
  A negative value
  The current instance is < .
  Zero
  The current instance is == .
  A positive value
  The current instance is > than or is a null reference.

  For any objects A, B and C, the following are required to be true:

  A.CompareTo(A) is required to return zero.

  If A.CompareTo(B) returns zero then B.CompareTo(A) is required to return zero.

  If A.CompareTo(B) returns zero and B.CompareTo(C) returns zero then A.CompareTo(C) is required to return zero.

  If A.CompareTo(B) returns a value other than zero then B.CompareTo(A) is required to return a value of the opposite sign.

  If A.CompareTo(B) returns a value not equal to zero, and B.CompareTo(C) returns a value of the same sign as , then A.CompareTo(C) is required to a value of the same sign as and .

  The exact behavior of this method is unspecified. The intent of this method is to provide a mechanism that orders instances of a class in a manner that is consistent with the mathematical definitions of the relational operators (<, >, and ==), without regard for class-specific definitions of the operators.

  Use the method to determine the ordering of instances of a class.

  0
  1.0.5000.0
  2.0.0.0
0 System.Runtime.InteropServices.ComVisible(true)