System.Linq 命名空間

提供類別與介面,其支援使用 Language-Integrated Query (LINQ) 的查詢。 Provides classes and interfaces that support queries that use Language-Integrated Query (LINQ).

類別

Enumerable

提供一組 static (在 Visual Basic 中為 Shared) 方法,用於查詢實作 IEnumerable<T> 的物件。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 資料來源的 EnumerableQueryRepresents 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 套件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 (在 Visual Basic 中為 Shared) 方法,用於查詢實作 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

指定要在查詢中使用的慣用 輸出合併 類型。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) 中的 system.object 元件 (。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 SQLFor more information, see LINQ to SQL.