Beispiel #1
0
        static void Main(string[] args)
        {
            DatetimeAggregate dateTimeRange = new DatetimeAggregate();
            dateTimeRange.startDate = new DateTime(2014, 05, 14);
            dateTimeRange.endDate = new DateTime(2014, 10, 14);

            IIterator iterator = dateTimeRange.CreateIterator();
            while (iterator.ReadNext())
            {
                Console.WriteLine(iterator.Current().ToString("yyyy.MM.dd"));
            }

            Console.ReadLine();
        }
 public WeekendDatetimeIterator(DatetimeAggregate datetimeList)
 {
     this.datetimeRange = datetimeList;
     this.currentDay = datetimeList.startDate;
 }
Beispiel #3
0
 public WeekendDatetimeIterator(DatetimeAggregate datetimeList)
 {
     this.datetimeRange = datetimeList;
     this.currentDay    = datetimeList.startDate;
 }