Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: IEnumerable<TResult> ParallelSelectMany<TSource, TResult>(this IEnumerable<TSource>, Func<TSource, IEnumerable<TResult>>)

  • Declared in: RT.Util.Ut

Declaration

public static IEnumerable<TResult> ParallelSelectMany<TSource, TResult>(
    this IEnumerable<TSource> items,
    Func<TSource, IEnumerable<TResult>> selector
)

Summary

Runs the specified function in parallel for each item in the input collection and returns a collection containing the concatenation of all the results of the function calls.

Generic type parameters

TSource The type of the elements of items.
TResult The type of the elements of the sequence returned by selector.

Parameters

this IEnumerable<TSource>items Input collection of items to pass to the function.
Func<TSource, IEnumerable<TResult>>selector Function that returns a collection for each input item.