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();

posted on 2014-05-15 21:51  学到老死  阅读(169)  评论(0编辑  收藏  举报