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)

type IEnumerable =  interface end

The IEnumerable type exposes the following members.

  NameDescription
Public methodGetEnumeratorReturns an enumerator that iterates through a collection.
Top

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.

Show: