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

解决方案 »

  1.   

    System.Collectionswhile (e.MoveNext())
    {
    Console.WriteLine(e.Current);  
    }
      

  2.   

    using System; 
    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());  //横线上写什么啊 
        } 
        } 
    }