Compares two specified keys and returns an integer that indicates their relative position in the sort order.

Namespace: Hypertable
Assembly: ht4n (in ht4n.dll) Version: 0.9.8.11 (0.9.8.11)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static int Compare(
	Key x,
	Key y
)
Public Shared Function Compare ( _
	x As Key, _
	y As Key _
) As Integer
public:
static int Compare(
	Key^ x, 
	Key^ y
)

Parameters

x
Key
The first key to compare, or null.
y
Key
The second key to compare, or null.

Return Value

Signed integer that indicates the relationship between the two comparands:
< 0if x is less than y
= 0if x equals y
> 0if x is greater than y

See Also