Exemplo n.º 1
0
        public static void Main()
        {
            LinkedList list = new LinkedList();

            list.Insert("1");
            list.Insert("2");
            list.Insert("3");
            list.Insert("4");
            list.Insert("5");

            while (!list.IsEmpty)
            {
                Link deletedLink = list.Delete();
                Console.Write("Removed: " + deletedLink);
                Console.WriteLine("");
            }
        }