Last Updated: 2001
Supported by the System.Collection namespace.
Note: You may write "for... each" but the compiler converts this to IEnumerator.
public interface IEnumerable {
IEnumerator GetEnumerator();
}public interface IEnumerator {
object current {get;}
bool MoveNext();
bool Reset();
}