Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Value Condition Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y.
Exception Type | Condition |
---|---|
ArgumentException | Neither x nor y implements the IComparable interface. -or- x and y are of different types and neither one can handle comparisons with the other. |
NaturalComparer Class | ComponentOwl.BetterThumbnailBrowser Namespace