AsyncEnumerable.SelectMany 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.
Overloads
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>) |
Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> 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. |
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,IAsyncEnumerable<TCollection>>, Func<TSource, TCollection,CancellationToken,ValueTask<TResult>>) |
Projects each element of a sequence to an IAsyncEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> sequence, and invokes a result selector function on each element therein. |
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,IAsyncEnumerable<TCollection>>, Func<TSource,TCollection,TResult>) |
Projects each element of a sequence to an IAsyncEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> 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. |
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,CancellationToken,ValueTask<IEnumerable<TCollection>>>, Func<TSource,TCollection,CancellationToken,ValueTask<TResult>>) |
Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> sequence, and invokes a result selector function on each element therein. |
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<IEnumerable<TCollection>>>, Func<TSource,TCollection,CancellationToken,ValueTask<TResult>>) |
Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> 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. |
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,IAsyncEnumerable<TCollection>>, Func<TSource,TCollection, CancellationToken,ValueTask<TResult>>) |
Projects each element of a sequence to an IAsyncEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> 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. |
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>) |
Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> sequence, and invokes a result selector function on each element therein. |
SelectMany<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,CancellationToken,ValueTask<IEnumerable<TResult>>>) |
Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one IAsyncEnumerable<T> sequence. The index of each source element is used in the projected form of that element. |
SelectMany<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,IEnumerable<TResult>>) |
Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one IAsyncEnumerable<T> sequence. The index of each source element is used in the projected form of that element. |
SelectMany<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,IAsyncEnumerable<TResult>>) |
Projects each element of a sequence to an IAsyncEnumerable<T> and flattens the resulting sequences into one IAsyncEnumerable<T> sequence. The index of each source element is used in the projected form of that element. |
SelectMany<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,IEnumerable<TResult>>) |
Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one IAsyncEnumerable<T> sequence. |
SelectMany<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,IAsyncEnumerable<TResult>>) |
Projects each element of a sequence to an IAsyncEnumerable<T> and flattens the resulting sequences into one IAsyncEnumerable<T> sequence. |
SelectMany<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<IEnumerable<TResult>>>) |
Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one IAsyncEnumerable<T> sequence. |
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>)
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> 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.
public:
generic <typename TSource, typename TCollection, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ SelectMany(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, System::Collections::Generic::IEnumerable<TCollection> ^> ^ collectionSelector, Func<TSource, TCollection, TResult> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> SelectMany<TSource,TCollection,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,System.Collections.Generic.IEnumerable<TCollection>> collectionSelector, Func<TSource,TCollection,TResult> resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, seq<'Collection>> * Func<'Source, 'Collection, 'Result> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, IEnumerable(Of TCollection)), resultSelector As Func(Of TSource, TCollection, TResult)) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector
.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
- IAsyncEnumerable<TSource>
A sequence of values to project.
- collectionSelector
- Func<TSource,IEnumerable<TCollection>>
A transform function to apply to each element of the input sequence.
- resultSelector
- Func<TSource,TCollection,TResult>
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerable<T> whose elements are the result of
invoking the one-to-many transform function collectionSelector
on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector
is null
.
Applies to
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,IAsyncEnumerable<TCollection>>, Func<TSource, TCollection,CancellationToken,ValueTask<TResult>>)
- Source:
- SelectMany.cs
Projects each element of a sequence to an IAsyncEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> sequence, and invokes a result selector function on each element therein.
public:
generic <typename TSource, typename TCollection, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ SelectMany(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, int, System::Collections::Generic::IAsyncEnumerable<TCollection> ^> ^ collectionSelector, Func<TSource, TCollection, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<TResult>> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> SelectMany<TSource,TCollection,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,int,System.Collections.Generic.IAsyncEnumerable<TCollection>> collectionSelector, Func<TSource,TCollection,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TResult>> resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Collections.Generic.IAsyncEnumerable<'Collection>> * Func<'Source, 'Collection, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, Integer, IAsyncEnumerable(Of TCollection)), resultSelector As Func(Of TSource, TCollection, CancellationToken, ValueTask(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector
.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
- IAsyncEnumerable<TSource>
A sequence of values to project.
- collectionSelector
- Func<TSource,Int32,IAsyncEnumerable<TCollection>>
A transform function to apply to each element of the input sequence.
- resultSelector
- Func<TSource,TCollection,CancellationToken,ValueTask<TResult>>
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerable<T> whose elements are the result of
invoking the one-to-many transform function collectionSelector
on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector
is null
.
Applies to
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,IAsyncEnumerable<TCollection>>, Func<TSource,TCollection,TResult>)
- Source:
- SelectMany.cs
Projects each element of a sequence to an IAsyncEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> 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.
public:
generic <typename TSource, typename TCollection, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ SelectMany(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, System::Collections::Generic::IAsyncEnumerable<TCollection> ^> ^ collectionSelector, Func<TSource, TCollection, TResult> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> SelectMany<TSource,TCollection,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,System.Collections.Generic.IAsyncEnumerable<TCollection>> collectionSelector, Func<TSource,TCollection,TResult> resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Collections.Generic.IAsyncEnumerable<'Collection>> * Func<'Source, 'Collection, 'Result> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, IAsyncEnumerable(Of TCollection)), resultSelector As Func(Of TSource, TCollection, TResult)) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector
.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
- IAsyncEnumerable<TSource>
A sequence of values to project.
- collectionSelector
- Func<TSource,IAsyncEnumerable<TCollection>>
A transform function to apply to each element of the input sequence.
- resultSelector
- Func<TSource,TCollection,TResult>
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerable<T> whose elements are the result of
invoking the one-to-many transform function collectionSelector
on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector
is null
.
Applies to
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,CancellationToken,ValueTask<IEnumerable<TCollection>>>, Func<TSource,TCollection,CancellationToken,ValueTask<TResult>>)
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> sequence, and invokes a result selector function on each element therein.
public:
generic <typename TSource, typename TCollection, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ SelectMany(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, int, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<System::Collections::Generic::IEnumerable<TCollection> ^>> ^ collectionSelector, Func<TSource, TCollection, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<TResult>> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> SelectMany<TSource,TCollection,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,int,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<System.Collections.Generic.IEnumerable<TCollection>>> collectionSelector, Func<TSource,TCollection,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TResult>> resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<seq<'Collection>>> * Func<'Source, 'Collection, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, Integer, CancellationToken, ValueTask(Of IEnumerable(Of TCollection))), resultSelector As Func(Of TSource, TCollection, CancellationToken, ValueTask(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector
.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
- IAsyncEnumerable<TSource>
A sequence of values to project.
- collectionSelector
- Func<TSource,Int32,CancellationToken,ValueTask<IEnumerable<TCollection>>>
A transform function to apply to each element of the input sequence.
- resultSelector
- Func<TSource,TCollection,CancellationToken,ValueTask<TResult>>
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerable<T> whose elements are the result of
invoking the one-to-many transform function collectionSelector
on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector
is null
.
Applies to
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<IEnumerable<TCollection>>>, Func<TSource,TCollection,CancellationToken,ValueTask<TResult>>)
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> 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.
public:
generic <typename TSource, typename TCollection, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ SelectMany(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<System::Collections::Generic::IEnumerable<TCollection> ^>> ^ collectionSelector, Func<TSource, TCollection, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<TResult>> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> SelectMany<TSource,TCollection,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<System.Collections.Generic.IEnumerable<TCollection>>> collectionSelector, Func<TSource,TCollection,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TResult>> resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<seq<'Collection>>> * Func<'Source, 'Collection, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, CancellationToken, ValueTask(Of IEnumerable(Of TCollection))), resultSelector As Func(Of TSource, TCollection, CancellationToken, ValueTask(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector
.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
- IAsyncEnumerable<TSource>
A sequence of values to project.
- collectionSelector
- Func<TSource,CancellationToken,ValueTask<IEnumerable<TCollection>>>
A transform function to apply to each element of the input sequence.
- resultSelector
- Func<TSource,TCollection,CancellationToken,ValueTask<TResult>>
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerable<T> whose elements are the result of
invoking the one-to-many transform function collectionSelector
on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector
is null
.
Applies to
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,IAsyncEnumerable<TCollection>>, Func<TSource,TCollection, CancellationToken,ValueTask<TResult>>)
- Source:
- SelectMany.cs
Projects each element of a sequence to an IAsyncEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> 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.
public:
generic <typename TSource, typename TCollection, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ SelectMany(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, System::Collections::Generic::IAsyncEnumerable<TCollection> ^> ^ collectionSelector, Func<TSource, TCollection, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<TResult>> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> SelectMany<TSource,TCollection,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,System.Collections.Generic.IAsyncEnumerable<TCollection>> collectionSelector, Func<TSource,TCollection,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TResult>> resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Collections.Generic.IAsyncEnumerable<'Collection>> * Func<'Source, 'Collection, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, IAsyncEnumerable(Of TCollection)), resultSelector As Func(Of TSource, TCollection, CancellationToken, ValueTask(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector
.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
- IAsyncEnumerable<TSource>
A sequence of values to project.
- collectionSelector
- Func<TSource,IAsyncEnumerable<TCollection>>
A transform function to apply to each element of the input sequence.
- resultSelector
- Func<TSource,TCollection,CancellationToken,ValueTask<TResult>>
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerable<T> whose elements are the result of
invoking the one-to-many transform function collectionSelector
on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector
is null
.
Applies to
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,IEnumerable<TCollection>>, Func<TSource,TCollection,TResult>)
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable<T>, flattens the resulting sequences into one IAsyncEnumerable<T> sequence, and invokes a result selector function on each element therein.
public:
generic <typename TSource, typename TCollection, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ SelectMany(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, int, System::Collections::Generic::IEnumerable<TCollection> ^> ^ collectionSelector, Func<TSource, TCollection, TResult> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> SelectMany<TSource,TCollection,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,int,System.Collections.Generic.IEnumerable<TCollection>> collectionSelector, Func<TSource,TCollection,TResult> resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, seq<'Collection>> * Func<'Source, 'Collection, 'Result> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TCollection, TResult) (source As IAsyncEnumerable(Of TSource), collectionSelector As Func(Of TSource, Integer, IEnumerable(Of TCollection)), resultSelector As Func(Of TSource, TCollection, TResult)) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TCollection
The type of the intermediate elements collected by collectionSelector
.
- TResult
The type of the elements of the resulting sequence.
Parameters
- source
- IAsyncEnumerable<TSource>
A sequence of values to project.
- collectionSelector
- Func<TSource,Int32,IEnumerable<TCollection>>
A transform function to apply to each element of the input sequence.
- resultSelector
- Func<TSource,TCollection,TResult>
A transform function to apply to each element of the intermediate sequence.
Returns
An IAsyncEnumerable<T> whose elements are the result of
invoking the one-to-many transform function collectionSelector
on each element
of source and then mapping each of those sequence elements and their corresponding
source element to a result element.
Exceptions
resultSelector
is null
.
Applies to
SelectMany<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,CancellationToken,ValueTask<IEnumerable<TResult>>>)
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one IAsyncEnumerable<T> sequence. The index of each source element is used in the projected form of that element.
public:
generic <typename TSource, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ SelectMany(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, int, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<System::Collections::Generic::IEnumerable<TResult> ^>> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> SelectMany<TSource,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,int,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<System.Collections.Generic.IEnumerable<TResult>>> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<seq<'Result>>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, Integer, CancellationToken, ValueTask(Of IEnumerable(Of TResult)))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TResult
The type of the elements of the sequence returned by selector.
Parameters
- source
- IAsyncEnumerable<TSource>
A sequence of values to project.
- selector
- Func<TSource,Int32,CancellationToken,ValueTask<IEnumerable<TResult>>>
A transform function to apply to each element.
Returns
An IAsyncEnumerable<T> whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.
Exceptions
selector
is null
.
Applies to
SelectMany<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,IEnumerable<TResult>>)
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one IAsyncEnumerable<T> sequence. The index of each source element is used in the projected form of that element.
public:
generic <typename TSource, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ SelectMany(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, int, System::Collections::Generic::IEnumerable<TResult> ^> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> SelectMany<TSource,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,int,System.Collections.Generic.IEnumerable<TResult>> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, seq<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, Integer, IEnumerable(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TResult
The type of the elements of the sequence returned by selector.
Parameters
- source
- IAsyncEnumerable<TSource>
A sequence of values to project.
- selector
- Func<TSource,Int32,IEnumerable<TResult>>
A transform function to apply to each element.
Returns
An IAsyncEnumerable<T> whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.
Exceptions
selector
is null
.
Applies to
SelectMany<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,IAsyncEnumerable<TResult>>)
- Source:
- SelectMany.cs
Projects each element of a sequence to an IAsyncEnumerable<T> and flattens the resulting sequences into one IAsyncEnumerable<T> sequence. The index of each source element is used in the projected form of that element.
public:
generic <typename TSource, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ SelectMany(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, int, System::Collections::Generic::IAsyncEnumerable<TResult> ^> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> SelectMany<TSource,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,int,System.Collections.Generic.IAsyncEnumerable<TResult>> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Collections.Generic.IAsyncEnumerable<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, Integer, IAsyncEnumerable(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TResult
The type of the elements of the sequence returned by selector.
Parameters
- source
- IAsyncEnumerable<TSource>
A sequence of values to project.
- selector
- Func<TSource,Int32,IAsyncEnumerable<TResult>>
A transform function to apply to each element.
Returns
An IAsyncEnumerable<T> whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.
Exceptions
selector
is null
.
Applies to
SelectMany<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,IEnumerable<TResult>>)
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one IAsyncEnumerable<T> sequence.
public:
generic <typename TSource, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ SelectMany(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, System::Collections::Generic::IEnumerable<TResult> ^> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> SelectMany<TSource,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,System.Collections.Generic.IEnumerable<TResult>> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, seq<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, IEnumerable(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TResult
The type of the elements of the sequence returned by selector.
Parameters
- source
- IAsyncEnumerable<TSource>
A sequence of values to project.
- selector
- Func<TSource,IEnumerable<TResult>>
A transform function to apply to each element.
Returns
An IAsyncEnumerable<T> whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.
Exceptions
selector
is null
.
Applies to
SelectMany<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,IAsyncEnumerable<TResult>>)
- Source:
- SelectMany.cs
Projects each element of a sequence to an IAsyncEnumerable<T> and flattens the resulting sequences into one IAsyncEnumerable<T> sequence.
public:
generic <typename TSource, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ SelectMany(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, System::Collections::Generic::IAsyncEnumerable<TResult> ^> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> SelectMany<TSource,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,System.Collections.Generic.IAsyncEnumerable<TResult>> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Collections.Generic.IAsyncEnumerable<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, IAsyncEnumerable(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TResult
The type of the elements of the sequence returned by selector.
Parameters
- source
- IAsyncEnumerable<TSource>
A sequence of values to project.
- selector
- Func<TSource,IAsyncEnumerable<TResult>>
A transform function to apply to each element.
Returns
An IAsyncEnumerable<T> whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.
Exceptions
selector
is null
.
Applies to
SelectMany<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<IEnumerable<TResult>>>)
- Source:
- SelectMany.cs
Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one IAsyncEnumerable<T> sequence.
public:
generic <typename TSource, typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ SelectMany(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<System::Collections::Generic::IEnumerable<TResult> ^>> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> SelectMany<TSource,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<System.Collections.Generic.IEnumerable<TResult>>> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<seq<'Result>>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function SelectMany(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, CancellationToken, ValueTask(Of IEnumerable(Of TResult)))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TSource
The type of the elements of source.
- TResult
The type of the elements of the sequence returned by selector.
Parameters
- source
- IAsyncEnumerable<TSource>
A sequence of values to project.
- selector
- Func<TSource,CancellationToken,ValueTask<IEnumerable<TResult>>>
A transform function to apply to each element.
Returns
An IAsyncEnumerable<T> whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.
Exceptions
selector
is null
.