Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            var list = new List <int>();

            Console.WriteLine("Push Back:");

            list.Push_Back(1);
            list.Push_Back(2);
            list.Push_Back(3);

            foreach (var item in list)
            {
                Console.Write(item + " ");
            }
            Console.WriteLine();

            Console.WriteLine("Remove:");

            list.Remove(2);

            foreach (var item in list)
            {
                Console.Write(item + " ");
            }
            Console.WriteLine();

            Console.WriteLine("Push Forward:");

            list.Push_Forward(0);

            foreach (var item in list)
            {
                Console.Write(item + " ");
            }
            Console.WriteLine();

            Console.WriteLine("Reverse:");

            list.Reverse();

            foreach (var item in list)
            {
                Console.Write(item + " ");
            }
            Console.WriteLine();

            list.Clear();
        }