CollectionAlgorithmsComparisonOfDifferentTypesT1, T2 Delegate |
Represents a method that compares two objects of different types.
Namespace:
AGI.Foundation.Infrastructure
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax public delegate int ComparisonOfDifferentTypes<T1, T2>(
T1 x,
T2 y
)
Public Delegate Function ComparisonOfDifferentTypes(Of T1, T2) (
x As T1,
y As T2
) As Integer
generic<typename T1, typename T2>
public delegate int ComparisonOfDifferentTypes(
T1 x,
T2 y
)
type ComparisonOfDifferentTypes =
delegate of
x : 'T1 *
y : 'T2 -> int
Parameters
- x
- Type: T1
The first object to compare. - y
- Type: T2
The second object to compare.
Type Parameters
- T1
- The type of the first object to compare.
- T2
- The type of the second object to compare.
Return Value
Type:
Int32
Less than zero if
x is less than
y, greater than zero if
x is greater than
y, and zero if
x
equals
y.
See Also