Click or drag to resize

SimpleComparerTCompare Method

If the Key objects implements IComparable then the NodeKeys are compared that way, otherwise the Id are compared

Namespace:  VelocityDb.Collection.Comparer
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public override int Compare(
	T a,
	T b
)

Parameters

a
Type: T
object a to compare
b
Type: T
object b to compare with

Return Value

Type: Int32
-1 if a less than b, 0 if == and 1 if a is greater than b

Implements

IComparerTCompare(T, T)
See Also