C#foreach的用法

static void Main(string[] args)
        {
            int[] a = new int[5] { 1, 2, 3, 4, 5 };
            foreach(int b in a);
            Console.WriteLine(b);

            Console.ReadLine();

        }

原文地址:https://www.cnblogs.com/yuhuameng/p/3657474.html