IEnumerable Interface

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

The IEnumerable type exposes the following members.


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


Extension Methods

Name Description
AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Cast<(Of <(TResult>)>) Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
OfType<(Of <(TResult>)>) Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)



For the generic version of this interface see System.Collections.Generic..::.IEnumerable<(Of <(T>)>).

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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0


Windows Phone

See Also


System.Collections Namespace


System.Collections.Generic..::.IEnumerable<(Of <(T>)>)