System.Linq Namespace

System.Linq 命名空間提供能夠支援使用 Language-Integrated Query (LINQ) 之查詢的類別和介面。 The System.Linq namespace 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>

表示做為 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].