Compares the value of this instance to a specified object that contains a specified Date or DateTime value, and returns an integer that indicates whether this instance is earlier than, the same as, or later than the specified Date or DateTime value.

Namespace:  DlhSoft.Windows.Data
Assembly:  DlhSoft.ProjectData.GanttChart.LightWPF.Controls (in DlhSoft.ProjectData.GanttChart.LightWPF.Controls.dll)

Syntax

C#
public int CompareTo(
	Object value
)
Visual Basic (Declaration)
Public Function CompareTo ( _
	value As Object _
) As Integer

Parameters

value
Type: System..::.Object
A boxed Date or DateTime object to compare, or null reference (Nothing in Visual Basic).

Return Value

A signed number indicating the relative values of this instance and the value parameter: less than zero indicates that this instance is earlier than value, zero indicates that this instance is the same as value, greater than zero indicates that this instance is later than value, or value is a null reference (Nothing in Visual Basic).

Implements

IComparable..::.CompareTo(Object)

See Also