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
)
Public Overridable Function Compare (
a As Key,
b As Key
) As Integer
public:
virtual int Compare(
Key a,
Key b
)
abstract Compare :
a : 'Key *
b : 'Key -> int
override Compare :
a : 'Key *
b : 'Key -> int
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