IEnumerable Interface

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Exposes the enumerator, which supports a simple iteration over a non-generic collection.

Namespace:  System.Collections
Assembly:  mscorlib (in mscorlib.dll)

Public Interface IEnumerable

The IEnumerable type exposes the following members.

Public methodGetEnumeratorReturns an enumerator that iterates through a collection.

For the generic version of this interface see IEnumerable.

Notes to Implementers

IEnumerable must be implemented to support the foreach semantics of Microsoft Visual Basic. COM classes that allow enumerators also implement this interface.