Click or drag to resize

CompareByFieldKeyCompare Method (Key, Key)

Compares field(s) of Key a with field(s) of Key b

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

Parameters

a
Type: Key
the first object
b
Type: Key
the second object

Return Value

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

Implements

IComparerTCompare(T, T)
See Also