This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5
Other versions are also available for the following:
.NET Framework Class Library
Enumerable..::.SelectMany Method
Projects each element of a sequence to an IEnumerable<(Of <(T>)>) and flattens the resulting sequences into one sequence.

Overload List
|
| Name | Description |
|---|
.gif) .gif) .gif) .gif) | SelectMany<(Of <(TSource, TResult>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, IEnumerable<(Of <(TResult>)>)>)>)) | Projects each element of a sequence to an IEnumerable<(Of <(T>)>) and flattens the resulting sequences into one sequence. |
.gif) .gif) .gif) .gif) | SelectMany<(Of <(TSource, TResult>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, Int32, IEnumerable<(Of <(TResult>)>)>)>)) | Projects each element of a sequence to an IEnumerable<(Of <(T>)>), and flattens the resulting sequences into one sequence. The index of each source element is used in the projected form of that element. |
.gif) .gif) .gif) .gif) | SelectMany<(Of <(TSource, TCollection, TResult>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, IEnumerable<(Of <(TCollection>)>)>)>), Func<(Of <(TSource, TCollection, TResult>)>)) | Projects each element of a sequence to an IEnumerable<(Of <(T>)>), flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. |
.gif) .gif) .gif) .gif) | SelectMany<(Of <(TSource, TCollection, TResult>)>)(IEnumerable<(Of <(TSource>)>), Func<(Of <(TSource, Int32, IEnumerable<(Of <(TCollection>)>)>)>), Func<(Of <(TSource, TCollection, TResult>)>)) | Projects each element of a sequence to an IEnumerable<(Of <(T>)>), flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. The index of each source element is used in the intermediate projected form of that element. |
Top

See Also