Windows Dev Center

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

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

Namespace:  System.Linq
Assemblies:   System.Core (in System.Core.dll)
  System.Linq (in System.Linq.dll)

public IEnumerable<TResult> ApplyResultSelector<TResult>(
	Func<TKey, IEnumerable<TElement>, TResult> resultSelector
)

Type Parameters

TResult

The type of the result values produced by resultSelector.

Parameters

resultSelector
Type: System.Func<TKey, IEnumerable<TElement>, TResult>

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

Return Value

Type: System.Collections.Generic.IEnumerable<TResult>
A collection that contains one value for each key/value collection pair in the Lookup<TKey, TElement>.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft