TYPE

IEnumerable<T>

Provides typed enumeration. The interface is covariant; enumeration need not be a snapshot.

Formal Syntax & Structure

csharp syntaxcsharp
System.Collections.Generic.IEnumerable<out T>

Working Example

Example Snippetcsharp
System.Collections.Generic.IEnumerable<object> items = new System.Collections.Generic.List<string> { "pen" };
C# & .NET Reference