ComparisonBasedComparerTCompare Method |
Compares the two passed in elements using the set compareFunc.
Namespace: SD.Tools.Algorithmia.UtilityClassesAssembly: SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.2.0.0 (1.2.14.1118)
Syntax public override int Compare(
T x,
T y
)
Public Overrides Function Compare (
x As T,
y As T
) As Integer
Parameters
- x
- Type: T
The first object to compare. - y
- Type: T
The second object to compare.
Return Value
Type:
Int32
the result of the compareFunc applied to the two input parameters. If FlipCompareResult is set to true, the result is negated.
Implements
IComparerTCompare(T, T)See Also