ObjectMaterializer<TDataReader>.CreateGroup<TKey,TElement> 方法

定義

從指定的鍵和值集合建立一個群組。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
generic <typename TKey, typename TElement>
 static System::Linq::IGrouping<TKey, TElement> ^ CreateGroup(TKey key, System::Collections::Generic::IEnumerable<TElement> ^ items);
public static System.Linq.IGrouping<TKey,TElement> CreateGroup<TKey,TElement>(TKey key, System.Collections.Generic.IEnumerable<TElement> items);
static member CreateGroup : 'Key * seq<'Element> -> System.Linq.IGrouping<'Key, 'Element>
Public Shared Function CreateGroup(Of TKey, TElement) (key As TKey, items As IEnumerable(Of TElement)) As IGrouping(Of TKey, TElement)

類型參數

TKey

群組鑰匙的類型。

TElement

該群組中數值的類型。

參數

key
TKey

這是團隊的關鍵。

items
IEnumerable<TElement>

團體的價值觀。

傳回

一個擁有指定鍵與指定值集合的群組。

適用於