.NET Framework Class Library
EnumerableQuery<T>.IEnumerable.GetEnumerator Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Returns an enumerator that can iterate through the associated IEnumerable<T> collection, or, if it is null, through the collection that results from rewriting the associated expression tree as a query on an IEnumerable<T> data source and executing it.
Assembly: System.Core (in System.Core.dll)
Syntax
Visual Basic
Private Function GetEnumerator As IEnumerator Implements IEnumerable.GetEnumerator
C#
IEnumerator IEnumerable.GetEnumerator()
Visual C++
private: virtual IEnumerator^ GetEnumerator() sealed = IEnumerable::GetEnumerator
F#
private abstract GetEnumerator : unit -> IEnumerator private override GetEnumerator : unit -> IEnumerator
Return Value
Type: System.Collections.IEnumeratorAn enumerator that can be used to iterate through the associated data source.
Implements
IEnumerable.GetEnumerator()Version Information
.NET Framework
Supported in: 4.NET Framework Client Profile
Supported in: 4Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also