Пример #1
0
        static void Main(string[] args)
        {
            DaysOfTheWeek ddd = new DaysOfTheWeek();
            foreach (var item in ddd)
            {
                Console.WriteLine(item);
            }
            Console.ReadKey();

            SampleCollection col = new SampleCollection();

            foreach (int i in col.BuildCollection())
            {
                Console.WriteLine(i);
            }

            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            DaysOfTheWeek ddd = new DaysOfTheWeek();

            foreach (var item in ddd)
            {
                Console.WriteLine(item);
            }
            Console.ReadKey();



            SampleCollection col = new SampleCollection();

            foreach (int i in col.BuildCollection())
            {
                Console.WriteLine(i);
            }

            Console.ReadKey();
        }