IEnumerator 成员
支持对非泛型集合的简单迭代。
下表列出了由 IEnumerator 类型公开的成员。
公共属性
名称 | 说明 | |
---|---|---|
Current | 获取集合中的当前元素。 |
页首
公共方法
名称 | 说明 | |
---|---|---|
MoveNext | 将枚举数推进到集合的下一个元素。 | |
Reset | 将枚举数设置为其初始位置,该位置位于集合中第一个元素之前。 |
页首
请参见
参考
IEnumerator 接口
System.Collections 命名空间
IEnumerable 接口
ICollection 接口
System.Collections.Generic.IEnumerator