Breyta

Deila með


KeysConverter.Compare(Object, Object) Method

Definition

Compares two key values for equivalence.

public:
 virtual int Compare(System::Object ^ a, System::Object ^ b);
public int Compare (object a, object b);
public int Compare (object? a, object? b);
abstract member Compare : obj * obj -> int
override this.Compare : obj * obj -> int
Public Function Compare (a As Object, b As Object) As Integer

Parameters

a
Object

An Object that represents the first key to compare.

b
Object

An Object that represents the second key to compare.

Returns

An integer indicating the relationship between the two parameters.

Value Type Condition
A negative integer. a is less than b.
0 a equals b.
A positive integer. a is greater than b.

Implements

Remarks

This method uses String.Compare to compare the two objects.

Applies to

See also