[]
        
(Showing Draft Content)

C1.C1Schedule.AppointmentComparer.Compare

Compare Method

Compare(Appointment, Appointment)

Performs a comparison of two Appointment objects and returns a value indicating whether the one Appointment starts earlier, at the same time, or later than the other.

Declaration
public override int Compare(Appointment x, Appointment y)
Parameters
Type Name Description
Appointment x

The first Appointment to compare.

Appointment y

The second Appointment to compare.

Returns
Type Description
int

Less than zero - x occurs earlier than y. Zero - x and y occur at the same time. Greater than zero - x occurs later than y.

Overrides