📜  将 getenumerator 添加到类 c# 代码示例

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

代码示例1
public bool MoveNext()
{
      position++;         
      return (position < carlist.Length);      
}      
public void Reset() => position = 0;
public object Current {         
       get { return carlist[position];}      
}