System.Linq Namespace

System.Linq 命名空间提供支持使用语言集成查询 (LINQ) 进行查询的类和接口。 The System.Linq namespace provides classes and interfaces that support queries that use Language-Integrated Query (LINQ).

Enumerable

提供一组用于查询实现 IEnumerable<T> 的对象的 static(在 Visual Basic 中为 Shared)方法。Provides a set of static (Shared in Visual Basic) methods for querying objects that implement IEnumerable<T>.

EnumerableExecutor

表示一个表达式目录树,并提供在重写该表达式目录树后执行该表达式目录树的功能。Represents an expression tree and provides functionality to execute the expression tree after rewriting it.

EnumerableExecutor<T>

表示一个表达式目录树,并提供在重写该表达式目录树后执行该表达式目录树的功能。Represents an expression tree and provides functionality to execute the expression tree after rewriting it.

EnumerableQuery

IEnumerable 表示为 EnumerableQuery 数据源。Represents an IEnumerable as an EnumerableQuery data source.

EnumerableQuery<T>

IEnumerable<T> 集合表示为 IQueryable<T> 数据源。Represents an IEnumerable<T> collection as an IQueryable<T> data source.

ImmutableArrayExtensions

LINQ 扩展方法重写,它们为 ImmutableArray<T> 提供的效率高于标准 LINQ 方法。LINQ extension method overrides that offer greater efficiency for ImmutableArray<T> than the standard LINQ methods NuGet 包System.Collections.Immutable关于不可变集合和安装方法NuGet package: System.Collections.Immutable (about immutable collections and how to install)

Lookup<TKey,TElement>

表示映射到一个或多个值的各个键的集合。Represents a collection of keys each mapped to one or more values.

OrderedParallelQuery<TSource>

表示已排序的并行序列。Represents a sorted, parallel sequence.

ParallelEnumerable

提供一组用于查询实现 ParallelQuery{TSource} 的对象的方法。Provides a set of methods for querying objects that implement ParallelQuery{TSource}. 这是并行等效项EnumerableThis is the parallel equivalent of Enumerable.

ParallelQuery

表示并行序列。Represents a parallel sequence.

ParallelQuery<TSource>

表示并行序列。Represents a parallel sequence.

Queryable

提供了一套static(Shared在 Visual Basic 中) 用于查询实现的方法IQueryable<T>Provides a set of static (Shared in Visual Basic) methods for querying data structures that implement IQueryable<T>.

接口

IGrouping<TKey,TElement>

表示具有公共键的对象的集合。Represents a collection of objects that have a common key.

ILookup<TKey,TElement>

定义索引器、大小属性以及将键映射到 IEnumerable<T> 值序列的数据结构的布尔搜索方法。Defines an indexer, size property, and Boolean search method for data structures that map keys to IEnumerable<T> sequences of values.

IOrderedEnumerable<TElement>

表示已排序序列。Represents a sorted sequence.

IOrderedQueryable

表示排序操作的结果。Represents the result of a sorting operation.

IOrderedQueryable<T>

表示排序操作的结果。Represents the result of a sorting operation.

IQueryable

提供对未指定数据类型的特定数据源的查询进行计算的功能。Provides functionality to evaluate queries against a specific data source wherein the type of the data is not specified.

IQueryable<T>

提供对数据类型已知的特定数据源的查询进行计算的功能。Provides functionality to evaluate queries against a specific data source wherein the type of the data is known.

IQueryProvider

定义用于创建和执行 IQueryable 对象所描述的查询的方法。Defines methods to create and execute queries that are described by an IQueryable object.

枚举

ParallelExecutionMode

查询执行模式是一种提示,它指定系统在并行化查询时应如何使性能达到平衡。The query execution mode is a hint that specifies how the system should handle performance trade-offs when parallelizing queries.

ParallelMergeOptions

指定要在查询中使用的首选输出合并类型。 换言之,它指示 PLINQ 如何将多个分区的结果合并回单个结果序列。 这仅是一个提示,系统在并行处理所有查询时可能不会考虑这一点。This is a hint only, and may not be respected by the system when parallelizing all queries.

注解

System.Linq命名空间是在 System.Core 程序集中 (在 system.core.dll 的引用)。The System.Linq namespace is in the System.Core assembly (in System.Core.dll).

Enumerable类包含LINQLINQ实现的对象运行的标准查询运算符IEnumerable<T>The Enumerable class contains LINQLINQ standard query operators that operate on objects that implement IEnumerable<T>.

Queryable类包含LINQLINQ实现的对象运行的标准查询运算符IQueryable<T>The Queryable class contains LINQLINQ standard query operators that operate on objects that implement IQueryable<T>.

有关 LINQ to SQL 的信息,请参阅LINQ to SQL [LINQ to SQL]For information about LINQ to SQL, see LINQ to SQL [LINQ to SQL].