Version

Compare Method

Compares two objects and returns a value indicating if one is greater than, less than or equal to the other.
Syntax
'Declaration
 
Public Function Compare( _
   ByVal x As T, _
   ByVal y As T _
) As Integer
public int Compare( 
   T x,
   T y
)

Parameters

x
The first object to compare
y
The second object to compare

Return Value

0 if the objects are equal. -1 if the first is less than the second. Otherwise 1 to indicate the second is less than the first.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also