Пример #1
0
        static void Main(string[] args)
        {
            ReverseList <string> test = new ReverseList <string>();

            test.Add("blabla");
            test.Add("blabla2");
            test.Add("blabla3");
            test.Add("blabla4");
            test.Add("blabla5");
            test.Add("blabla6");
            for (int i = 0; i < test.Count; i++)
            {
                Console.WriteLine(test[i]);
            }
            test.Remove(2);
            for (int i = 0; i < test.Count; i++)
            {
                Console.WriteLine(test[i]);
            }

            foreach (var VARIABLE in test)
            {
                Console.WriteLine(VARIABLE);
            }
        }
Пример #2
0
        static void Main(string[] args)
        {
            ReverseList <string> test = new ReverseList <string>();

            test.Add("item");
            test.Add("item2");
            test.Add("item3");
            test.Add("item4");
            test.Add("item5");
            test.Add("item6");
            for (int i = 0; i < test.Count; i++)
            {
                Console.WriteLine(test[i]);
            }
            test.Remove(2);
            for (int i = 0; i < test.Count; i++)
            {
                Console.WriteLine(test[i]);
            }

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