Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.Components.TimeOfDayNullLastComparer.Compare Method

Compares two YetaWF.Core.Components.TimeOfDay instances and returns a value indicating whether one is less than, equal to, or greater than the other.

Class: YetaWF.Core.Components.TimeOfDayNullLastComparer
Namespace: YetaWF.Core.Components
Assembly: YetaWF.Core

Syntax

public int Compare(
    TimeOfDay? x,
    TimeOfDay? y );

Parameters

x

The first YetaWF.Core.Components.TimeOfDay instance to compare. May be null.

y

The second YetaWF.Core.Components.TimeOfDay instance to compare. May be null.

Return Value

Returns less than 0 if x is smaller than y, 0 if they are equal, greater than 0 if x is greater than y.

Remarks

TimeOfDay values are compared so earlier times are considered smaller. A null YetaWF.Core.Components.TimeOfDay instance is considered greater (later) than a non-null value.

See Also YetaWF.Core.Components.TimeOfDayNullLastComparer ClassYetaWF.Core Overview