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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.