int[] l1=new int[]{7,9,12,1,32,5,7}; int[] l2={7,9,12,1,32,5,7}; string[] s1=new String[]{"a","b","c","e","h"}; string[] s2={"a","b","c","e","h"};
//上边是两种声明方法,作用相同 foreach(var i in s1 ) { Console.WriteLine(i); } Console.ReadKey();