// Token: 0x060055D8 RID: 21976 RVA: 0x0017CA5B File Offset: 0x0017AC5B
        private static IEnumerable <DateTime> GetDaysInRange(DateTime start, DateTime end)
        {
            int      increment  = SelectedDatesCollection.GetDirection(start, end);
            DateTime?rangeStart = new DateTime?(start);

            do
            {
                yield return(rangeStart.Value);

                rangeStart = DateTimeHelper.AddDays(rangeStart.Value, increment);
            }while (rangeStart != null && DateTime.Compare(end, rangeStart.Value) != -increment);
            yield break;
        }
 /// <summary>Adds all the dates in the specified range, which includes the first and last dates, to the collection.</summary>
 /// <param name="start">The first date to add to the collection.</param>
 /// <param name="end">The last date to add to the collection.</param>
 // Token: 0x060055C8 RID: 21960 RVA: 0x0017C33C File Offset: 0x0017A53C
 public void AddRange(DateTime start, DateTime end)
 {
     this.BeginAddRange();
     if (this._owner.SelectionMode == CalendarSelectionMode.SingleRange && base.Count > 0)
     {
         this.ClearInternal();
     }
     foreach (DateTime item in SelectedDatesCollection.GetDaysInRange(start, end))
     {
         base.Add(item);
     }
     this.EndAddRange();
 }
        // Token: 0x060055CD RID: 21965 RVA: 0x0017C6F4 File Offset: 0x0017A8F4
        internal void AddRangeInternal(DateTime start, DateTime end)
        {
            this.BeginAddRange();
            DateTime currentDate = start;

            foreach (DateTime dateTime in SelectedDatesCollection.GetDaysInRange(start, end))
            {
                if (Calendar.IsValidDateSelection(this._owner, dateTime))
                {
                    base.Add(dateTime);
                    currentDate = dateTime;
                }
                else if (this._owner.SelectionMode == CalendarSelectionMode.SingleRange)
                {
                    this._owner.CurrentDate = currentDate;
                    break;
                }
            }
            this.EndAddRange();
        }