Click or drag to resize
Accord.NET (logo)

StableComparerTCompare Method

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Namespace:  Accord.Math.Comparers
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public int Compare(
	KeyValuePair<int, T> x,
	KeyValuePair<int, T> y
)
Request Example View Source

Parameters

x
Type: System.Collections.GenericKeyValuePairInt32, T
The first object to compare.
y
Type: System.Collections.GenericKeyValuePairInt32, T
The second object to compare.

Return Value

Type: Int32
A signed integer that indicates the relative values of x and y.
See Also