Compares two objects and returns a value that indicates whether one is less than, equal to, or greater than the other.
Type: System.Int32A signed integer that indicates the relative values of x and y, as shown in the following table.
Less than zero
x is less than y.
x equals y.
Greater than zero
x is greater than y.
Neither x nor y implements the IComparable interface.
x and y are of different types and neither one can handle comparisons with the other.
This member is an explicit interface implementation. It can be used only when the StringComparer instance is cast to an IComparer interface.
Comparing null with any type is allowed and does not generate an exception. When sorting, null is considered to be less than any object.
Portable Class Library
Supported in: Portable Class Library
.NET for Windows Store apps
Supported in: Windows 8
(1500 characters remaining)
Thank you for your feedback