.NET Framework Class Library
Enumerable Class

Provides a set of static (Shared in Visual Basic) methods for querying objects that implement IEnumerable<(Of <(T>)>).

Namespace:  System.Linq
Assembly:  System.Core (in System.Core.dll)
Syntax

Visual Basic (Declaration)
<ExtensionAttribute> _
Public NotInheritable Class Enumerable
Visual Basic (Usage)
You do not need to declare an instance of a static class in order to access its members.
C#
public static class Enumerable
Visual C++
[ExtensionAttribute]
public ref class Enumerable abstract sealed
JScript
public final class Enumerable
Remarks

The methods in this class provide an implementation of the standard query operators for querying data sources that implement IEnumerable<(Of <(T>)>). The standard query operators are general purpose methods that follow the LINQ pattern and enable you to express traversal, filter, and projection operations over data in any .NET-based programming language.

The majority of the methods in this class are defined as extension methods that extend IEnumerable<(Of <(T>)>). This means they can be called like an instance method on any object that implements IEnumerable<(Of <(T>)>).

Methods that are used in a query that returns a sequence of values do not consume the target data until the query object is enumerated. This is known as deferred execution. Methods that are used in a query that returns a singleton value execute and consume the target data immediately.

Inheritance Hierarchy

System..::.Object
  System.Linq..::.Enumerable
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, 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.
Version Information

.NET Framework

Supported in: 3.5

.NET Compact Framework

Supported in: 3.5

XNA Framework

Supported in: 3.0
See Also

Reference

Other Resources

Tags :


Page view tracker