示例#1
0
 /// <summary>
 /// Return intersection with current date range.
 /// </summary>
 /// <returns>Return null if no intersection.</returns>
 public DateRange Intersect(DateRange other)
 {
     return(Intersect(this, other));
 }
示例#2
0
 protected bool Equals(DateRange other)
 {
     return(Start.Equals(other.Start) && End.Equals(other.End));
 }
示例#3
0
        public DateRange Intersect(DateTime startDate, DateTime endDate)
        {
            var range = new DateRange(startDate, endDate);

            return(Intersect(this, range));
        }
 public FixedWorkingDaysExceptionsProvider(IDictionary <DateTime, DayType> workingDaysExceptions)
 {
     this.workingDaysExceptions = workingDaysExceptions ?? throw new ArgumentNullException(nameof(workingDaysExceptions));
     SupportedDateRange         = new DateRange(DateTime.MinValue, DateTime.MaxValue);
 }