Compare Method (PropertyComparer<T>)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Parameters
- x
- The first object to compare.
- y
- The second object to compare.
Return Value
A signed integer that indicates the relative values of x and y, as shown in the following table.
Value |
Meaning |
Less than zero |
x is less than y. |
Zero |
x equals y. |
Greater than zero |
x is greater than y. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2