Class DateTimeComparer
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
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
IDateTimeProviderThe x.
y
IDateTimeProviderThe y.
Returns
- int
comparison