mscorlib(4.0.0.0) API with additions
|
Exposes a method that compares two objects. More...
Public Member Functions | |
int | Compare (object x, object y) |
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. More... | |
Exposes a method that compares two objects.
Definition at line 8 of file IComparer.cs.
int System.Collections.IComparer.Compare | ( | object | x, |
object | y | ||
) |
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
x | The first object to compare. |
y | The second object to compare. |
T:System.ArgumentException | Neither x nor y implements the T:System.IComparable interface.-or- x and y are of different types and neither one can handle comparisons with the other. |
Implemented in System.StringComparer, System.Collections.Comparer, and System.Collections.CaseInsensitiveComparer.