(foreach,in)
這個陳述式提供了一個的方法來逐一查看陣列中的元素。

int[] arry = { 0, 1, 2, 3, 4 };
foreach (int i in arry)
{
Console.WriteLine(i);

marlin10 發表在 痞客邦 留言(0) 人氣()