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.

Namespace:  C1.C1Schedule
Assembly:  C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)

Syntax

C#
public override int Compare(
	Appointment x,
	Appointment y
)
Visual Basic
Public Overrides Function Compare ( _
	x As Appointment, _
	y As Appointment _
) As Integer

Parameters

x
Type: C1.C1Schedule..::..Appointment
The first Appointment to compare.
y
Type: C1.C1Schedule..::..Appointment
The second Appointment to compare.

Return Value

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.

Implements

IComparer<(Of <(<'T>)>)>..::..Compare(T, T)

See Also