Share via


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)

Syntax

'Declaration
Public Interface IEnumerable
public interface IEnumerable
public interface class IEnumerable
type IEnumerable =  interface end
public interface IEnumerable

The IEnumerable type exposes the following members.

Methods

  Name Description
Public method GetEnumerator Returns an enumerator that iterates through a collection.

Top

Remarks

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.

See Also

Reference

System.Collections Namespace