ComboBox.ObjectCollection.IComparer<ComboBox.ObjectCollection.Entry>.Compare Method

Definition

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

C#
int IComparer<ComboBox.ObjectCollection.Entry>.Compare(System.Windows.Forms.ComboBox.ObjectCollection.Entry? entry1, System.Windows.Forms.ComboBox.ObjectCollection.Entry? entry2);
C#
int IComparer<ComboBox.ObjectCollection.Entry>.Compare(System.Windows.Forms.ComboBox.ObjectCollection.Entry entry1, System.Windows.Forms.ComboBox.ObjectCollection.Entry entry2);

Parameters

entry1
System.Windows.Forms.ComboBox.ObjectCollection.Entry

The entry to be compared

entry2
System.Windows.Forms.ComboBox.ObjectCollection.Entry

The entry to compare with.

Returns

A signed integer that indicates the relative values of x and y, as shown in the following table.

Value Meaning
Less than zero x is less than y.
Zero x equals y.
Greater than zero x is greater than y.

Implements

Applies to

Product Versions
Windows Desktop 6, 7, 8, 9, 10