Collapse AllExpand All      Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: F# Code: JScript 
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
public interface IEnumerable
public interface class IEnumerable
type IEnumerable =  interface end
public interface IEnumerable

The IEnumerable type exposes the following members.

  NameDescription
Public method GetEnumeratorReturns 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.