Table of Contents

Class EntityDateRange

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

Provides the instance of IEntity - derived class, "From" Date and "To" Date.

public class EntityDateRange : DateRange, IDateRange, IEquatable<DateRange>, IEqualityComparer<EntityDateRange>
Inheritance
EntityDateRange
Implements
Inherited Members

Constructors

EntityDateRange(IEntity, DateTime?, DateTime?)

Initializes a new instance of the EntityDateRange class.

public EntityDateRange(IEntity entity, DateTime? from, DateTime? to)

Parameters

entity IEntity

The instance of IEntity - derived class.

from DateTime?

The "From" Date.

to DateTime?

The "To" Date.

Properties

Entity

Gets or sets the IEntity - derived class instance.

public IEntity? Entity { get; set; }

Property Value

IEntity

The IEntity - derived class instance.

Methods

Equals(EntityDateRange?, EntityDateRange?)

public bool Equals(EntityDateRange? x, EntityDateRange? y)

Parameters

x EntityDateRange
y EntityDateRange

Returns

bool

Equals(object?)

Determines whether the specified object, is equal to this instance.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

GetHashCode()

Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetHashCode(EntityDateRange)

public int GetHashCode(EntityDateRange obj)

Parameters

obj EntityDateRange

Returns

int