Muokkaa

Jaa


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

Definition

Applies a transform function to each key and its associated values and returns the results.

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)

Type Parameters

TResult

The type of the result values produced by resultSelector.

Parameters

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

A function to project a result value from each key and its associated values.

Returns

IEnumerable<TResult>

A collection that contains one value for each key/value collection pair in the Lookup<TKey,TElement>.

Applies to