Export (0) Print
Expand All

KeysConverter.Compare Method

Compares two key values for equivalence.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public int Compare(
	Object a,
	Object b
)

Parameters

a
Type: System.Object

An Object that represents the first key to compare.

b
Type: System.Object

An Object that represents the second key to compare.

Return Value

Type: System.Int32
An integer indicating the relationship between the two parameters.

Value Type

Condition

A negative integer.

a is less than b.

zero

a equals b.

A positive integer.

a is greater than b.

Implements

IComparer.Compare(Object, Object)

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft