共用方式為


Lookup<TKey,TElement>.ApplyResultSelector<TResult> 方法

定義

將轉換函式套用至每個索引鍵及其相關值,並傳回結果。

public:
generic <typename TResult>
 System::Collections::Generic::IEnumerable<TResult> ^ ApplyResultSelector(Func<TKey, System::Collections::Generic::IEnumerable<TElement> ^, TResult> ^ resultSelector);
public System.Collections.Generic.IEnumerable<TResult> ApplyResultSelector<TResult> (Func<TKey,System.Collections.Generic.IEnumerable<TElement>,TResult> resultSelector);
member this.ApplyResultSelector : Func<'Key, seq<'Element>, 'Result> -> seq<'Result>
Public Function ApplyResultSelector(Of TResult) (resultSelector As Func(Of TKey, IEnumerable(Of TElement), TResult)) As IEnumerable(Of TResult)
Public Iterator Function ApplyResultSelector(Of TResult) (resultSelector As Func(Of TKey, IEnumerable(Of TElement), TResult)) As IEnumerable(Of TResult)

類型參數

TResult

resultSelector 所產生的結果值之型別。

參數

resultSelector
Func<TKey,IEnumerable<TElement>,TResult>

從每個索引鍵及其相關值投射結果值的函式。

傳回

IEnumerable<TResult>

集合,針對 Lookup<TKey,TElement> 中的每個索引鍵/值集合組包含一個值。

適用於