Пример #1
0
        /// <summary>
        /// Tests the Iterator Pattern.
        /// </summary>
        public static void ExecuteTest()
        {
            DasavataraCollection dasa          = new DasavataraCollection();
            IIterator <Krsna>    krsnaIterator = dasa.CreateIterator();

            while (krsnaIterator.HasNext())
            {
                krsnaIterator.CurrentValue().RevealLila();
                System.Console.WriteLine(string.Empty);
                Thread.Sleep(1000);
                krsnaIterator.Next();
            }
        }