예제 #1
0
        private static void Main()
        {
            // int is the type argument
            IntList list = new IntList();

            for (int x = 0; x < 10; x++)
            {
                list.AddHead(x);
            }

            foreach (var i in list)
            {
                System.Console.Write(i + " ");
            }

            System.Console.WriteLine("\nDone");
        }