Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
The first object to compare.
The second object to compare.
A signed integer that indicates the relative values of x and y: - If less than 0, x is less than y. - If 0, x equals y. - If greater than 0, x is greater than y.
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
The first object to compare.
The second object to compare.
A signed integer that indicates the relative values of x and y: - If less than 0, x is less than y. - If 0, x equals y. - If greater than 0, x is greater than y.
Exposes a method that compares two objects.