System.Linq 命名空间
提供支持某些查询的类和接口,这些查询使用语言集成查询 (LINQ)。 Provides classes and interfaces that support queries that use Language-Integrated Query (LINQ).
类
Enumerable |
提供一组用于查询实现 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> |
表示作为 IQueryable<T> 数据源的 IEnumerable<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 package: 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}. 这是 Enumerable 的并行等效项。This is the parallel equivalent of Enumerable. |
ParallelQuery |
表示并行序列。Represents a parallel sequence. |
ParallelQuery<TSource> |
表示并行序列。Represents a parallel sequence. |
Queryable |
提供一组用于查询实现 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 |
指定要在查询中使用的首选 输出合并 类型。Specifies the preferred type of output merge to use in a query. 换而言之,它指示 PLINQ 应如何将来自各个分区的结果合并回单个结果序列。In other words, it indicates how PLINQ should merge the results from the various partitions back into a single result sequence. 这只是一个提示,并且在对所有查询进行并行化时系统可能不会遵循此提示。This is a hint only, and may not be respected by the system when parallelizing all queries. |
注解
System.Linq命名空间在 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。For more information, see LINQ to SQL.