Click or drag to resize

VelocityDbComparerKeyCompare Method (Key, Key)

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 virtual int Compare(
	Key a,
	Key b
)

Parameters

a
Type: Key
object a to compare
b
Type: Key
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