Bridge

Comparison<(Of <(<'T>)>)> Delegate

Represents the method that compares two objects of the same type.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[NameAttribute]
[ExternalAttribute]
public delegate int Comparison<T>(
	T x,
	T y
)
<NameAttribute> _
<ExternalAttribute> _
Public Delegate Function Comparison(Of T) ( _
	x As T, _
	y As T _
) As Integer
[NameAttribute]
[ExternalAttribute]
generic<typename T>
public delegate int^ Comparison(
	T x, 
	T y
)

Type Parameters

T
The type of the objects to compare.This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

Parameters

x
Type: T
The first object to compare.
y
Type: T
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 0 x is less than y.0 x equals y.Greater than 0 x is greater than y.