📜  如何列出数组的元素 C# - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:29.186000             🧑  作者: Mango

代码示例1
int[] numarray = {1, 2, 3 ,4};
foreach(int num in numarray){
  /* You can do a lot of things with the elements, 
  I am going to just print them to the console. */
  System.Console.WriteLine(num);
}