Lookup<TKey,TElement>.ApplyResultSelector<TResult> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Samarbejd med os på GitHub
Kilden til dette indhold kan findes på GitHub, hvor du også kan oprette og gennemse problemer og pullanmodninger. Du kan få flere oplysninger i vores vejledning til bidragydere.