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

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft