[This is preliminary documentation and is subject to change.]

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Namespace: Tools.CollectionsT.GenericT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public int Compare(
	T x,
	T y
)
Visual Basic
Public Function Compare ( _
	x As T, _
	y As T _
) As Integer
Visual C++
public:
virtual int Compare(
	T x, 
	T y
) sealed
F#
abstract Compare : 
        x:'T * 
        y:'T -> int 
override Compare : 
        x:'T * 
        y:'T -> int 
JScript
public final function Compare(
	x : T, 
	y : T
) : int

Parameters

x
Type: T
The first object to compare.
y
Type: T
The second object to compare.

Return Value

Value Condition Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y.

Implements

IComparer<(Of <(<'T>)>)>..::..Compare(T, T)

See Also