示例#1
0
        static void Main(String[] args)
        {
            var values = new Int32[] { 0, 1, 2, 3, 0 };

            foreach (var value in values.Cycle())
            {
                Console.Write(" {0}", value);
                Thread.Sleep(100);
            }
        }