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
IEntityThe 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
Methods
Equals(EntityDateRange?, EntityDateRange?)
public bool Equals(EntityDateRange? x, EntityDateRange? y)
Parameters
Returns
Equals(object?)
Determines whether the specified object, is equal to this instance.
public override bool Equals(object? obj)
Parameters
Returns
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