Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2010/.NET Framework 4.0

Other versions are also available for the following:
.NET Framework Class Library
IEnumerable<(Of <(T>)>) 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 collection of a specified type.

Namespace:  System.Collections.Generic
Assembly:  mscorlib (in mscorlib.dll)
Visual Basic (Declaration)
Public Interface IEnumerable(Of Out T) _
    Inherits IEnumerable
Visual Basic (Usage)
Dim instance As IEnumerable(Of Out T)
C#
public interface IEnumerable<out T> : IEnumerable
Visual C++
generic<typename T>
public interface class IEnumerable : IEnumerable
F#
type IEnumerable<'T> =  
    interface
        interface IEnumerable
    end

Type Parameters

out Out out out T

The type of objects to enumerate.

This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.

Notes to Implementers

IEnumerable<(Of <(T>)>) is included for parity with non-generic collections; implementing IEnumerable<(Of <(T>)>) allows a generic collection to be passed to a method that expects an IEnumerable object.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4

.NET Compact Framework

Supported in: 3.5, 2.0

XNA Framework

Supported in: 3.0, 2.0, 1.0
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker