Lookup<TKey,TElement>.ApplyResultSelector<TResult> Metoda

Definice

Použije transformační funkci na každý klíč a jeho přidružené hodnoty a vrátí výsledky.

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)

Parametry typu

TResult

Typ výsledných hodnot vytvořených nástrojem resultSelector.

Parametry

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

Funkce, která promítá výslednou hodnotu z každého klíče a jeho přidružených hodnot.

Návraty

IEnumerable<TResult>

Kolekce, která obsahuje jednu hodnotu pro každý pár kolekce klíč/hodnota v objektu Lookup<TKey,TElement>.

Platí pro