/// <summary> /// Initializes a new instance of the <see cref="EpochPeriod"/> class. /// </summary> /// <param name="startDateTime">The start date of period.</param> /// <param name="endDateTime">The end date of period.</param> public EpochPeriod(DateTime startDateTime, DateTime endDateTime) { if (startDateTime > endDateTime) { SentinelHelper.ArgumentGreaterThan(nameof(endDateTime), startDateTime, endDateTime); //throw new InvalidPeriodException("ENDDATE_MUSTBE_GREATHER_STARTDATE"); } EndDateTime = endDateTime; StartDateTime = startDateTime; }