using System;
using System.______; //横线上写什么啊
nanmespace Demo2
{
{
public static void Main()
{
int[]arr=new int[]{1,2,3};
IEnumerator e=arr.GetEnumerator();
//编历枚举器元素
while(_____________) //横线上写什么啊
Console.WriteLine(_____________); //横线上写什么啊
}
}
}
调试欢乐多
{
Console.WriteLine(e.Current);
}
using System.Collections; //横线上写什么啊
nanmespace Demo2
{
{
public static void Main()
{
int[]arr=new int[]{1,2,3};
IEnumerator e=arr.GetEnumerator();
//编历枚举器元素
while(e.MoveNext()) //横线上写什么啊
Console.WriteLine(e.Current.ToString()); //横线上写什么啊
}
}
}