ABPerson.IComparable.CompareTo(Object) Method

Definition

Compares this instance with the specified ABPerson and returns an integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as o.

int IComparable.CompareTo (object o);

Parameters

o
Object

The T:System.Object to compare to this instance.

Returns

A T:System.Int32 that indicates whether this instance precedes, follows, or appears in the same position in the sort order as o.

ValueCondition
Less than zero This instance precedes o.
Zero This instance has the same position in the sort order as o.
Greater than zero This instance follows o.

Implements

Applies to