Table of Contents

Class DateTimeComparer

Namespace
Geotab.Checkmate.ObjectModel
Assembly
Geotab.Checkmate.ObjectModel.dll

false Reusable class to compare IDateTimeProviders.

public class DateTimeComparer : IComparer<IDateTimeProvider>
Inheritance
DateTimeComparer
Implements
Inherited Members

Constructors

DateTimeComparer()

Initializes a new instance of the DateTimeComparer class.

public DateTimeComparer()

Properties

IsChronological

Gets or sets a value indicating whether reorder the IDateTimeProvider comparison.

public bool IsChronological { get; set; }

Property Value

bool

A value indicating whether reorder the IDateTimeProvider comparison.

Methods

Compare(IDateTimeProvider?, IDateTimeProvider?)

Compares the DateTime of x and y.

public int Compare(IDateTimeProvider? x, IDateTimeProvider? y)

Parameters

x IDateTimeProvider

The x.

y IDateTimeProvider

The y.

Returns

int

comparison