Example #1
0
        static void Main(string[] args)
        {
            DateTimeAggregate date = new DateTimeAggregate();

            date.startDate = new DateTime(2021, 01, 01);
            date.endDate   = DateTime.Now;
            IIterator iterator = date.CreateIterator();

            while (iterator.HasDate())
            {
                Console.WriteLine(iterator.CurrentDate());
            }
            Console.ReadKey();
        }
Example #2
0
        static void Main(string[] args)
        {
            DateTimeAggregate tarih = new DateTimeAggregate();

            tarih.StartDate = new DateTime(2020, 04, 01);
            tarih.EndDate   = DateTime.Now;
            IIterator iterator = tarih.CreateIterator();

            while (iterator.HasDate())
            {
                Console.WriteLine(iterator.CurrentDate());
            }

            Console.Read();
        }