Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            // get a slice of a List

            var utilList = new UList <int> {
                1, 2, 3, 5, 43, 42, 6, 88, 886, 864
            };

            Console.WriteLine("Original Util List: ");
            Console.WriteLine(utilList);

            // call the get next.
            Console.WriteLine(utilList.GetNext());
            Console.WriteLine(utilList.GetNext());
            utilList.GetNext();
            Console.WriteLine(utilList.GetNext());

            // make sure that the foreach still works
            Console.WriteLine(utilList);
            Console.WriteLine("Program Success.");
        }