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

相关文章:

  • 2022-12-23
  • 2021-10-30
  • 2021-06-24
  • 2021-07-14
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
猜你喜欢
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案