IComparer interface implementation. Compares two instances of provided objects.

Namespace:  Rebex
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Function Compare ( _
	x As Object, _
	y As Object _
) As Integer
C#
public int Compare(
	Object x,
	Object y
)

Parameters

x
Type: System..::..Object
The first object to compare.
y
Type: System..::..Object
The second object to compare.

Return Value

A signed integer that indicates the result of of x and y comparison. Value Less than zero means x is less than y. Zero x equals y. Greater than zero x is greater than y.

Implements

IComparer..::..Compare(Object, Object)

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also