Telerik UI for Windows Phone by Progress

Compares two objects.

Namespace: Telerik.Windows.Data
Assembly: Telerik.Windows.Data (in Telerik.Windows.Data.dll) Version: 2013.1.422.2040 (2013.1.0422.2040)

Syntax

C#
public override int Compare(
	Object element1,
	Object element2
)
Visual Basic
Public Overrides Function Compare ( _
	element1 As Object, _
	element2 As Object _
) As Integer
Visual C++
public:
virtual int Compare(
	Object^ element1, 
	Object^ element2
) override

Parameters

element1
Type: System..::..Object
The first object to compare.
element2
Type: System..::..Object
The second object to compare.

Return Value

If the first object is bigger than the second one -1, 0 if both objects are equal and 1 if the second object is the bigger one.

Implements

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

See Also