AsyncEnumerable.SelectMany Method (System.Linq) (original) (raw)

Definition

Overloads

SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable, Func<TSource,CancellationToken,ValueTask<IEnumerable>>, Func<TSource,TCollection,CancellationToken,ValueTask>) Projects each element of a sequence to an IEnumerable, flattens the resulting sequences into one IAsyncEnumerable 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, Func<TSource,Int32,CancellationToken,ValueTask<IEnumerable>>, Func<TSource,TCollection,CancellationToken,ValueTask>) Projects each element of a sequence to an IEnumerable, flattens the resulting sequences into one IAsyncEnumerable sequence, and invokes a result selector function on each element therein.
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable, Func<TSource,Int32,IEnumerable>, Func<TSource,TCollection,TResult>) Projects each element of a sequence to an IEnumerable, flattens the resulting sequences into one IAsyncEnumerable sequence, and invokes a result selector function on each element therein.
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable, Func<TSource,Int32,IAsyncEnumerable>, Func<TSource, TCollection,CancellationToken,ValueTask>) Projects each element of a sequence to an IAsyncEnumerable, flattens the resulting sequences into one IAsyncEnumerable sequence, and invokes a result selector function on each element therein.
SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable, Func<TSource,IEnumerable>, Func<TSource,TCollection,TResult>) Projects each element of a sequence to an IEnumerable, flattens the resulting sequences into one IAsyncEnumerable 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, Func<TSource,IAsyncEnumerable>, Func<TSource,TCollection,TResult>) Projects each element of a sequence to an IAsyncEnumerable, flattens the resulting sequences into one IAsyncEnumerable 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, Func<TSource,IAsyncEnumerable>, Func<TSource,TCollection, CancellationToken,ValueTask>) Projects each element of a sequence to an IAsyncEnumerable, flattens the resulting sequences into one IAsyncEnumerable 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,TResult>(IAsyncEnumerable, Func<TSource,Int32,CancellationToken,ValueTask<IEnumerable>>) Projects each element of a sequence to an IEnumerable and flattens the resulting sequences into one IAsyncEnumerable sequence. The index of each source element is used in the projected form of that element.
SelectMany<TSource,TResult>(IAsyncEnumerable, Func<TSource,Int32,IEnumerable>) Projects each element of a sequence to an IEnumerable and flattens the resulting sequences into one IAsyncEnumerable sequence. The index of each source element is used in the projected form of that element.
SelectMany<TSource,TResult>(IAsyncEnumerable, Func<TSource,Int32,IAsyncEnumerable>) Projects each element of a sequence to an IAsyncEnumerable and flattens the resulting sequences into one IAsyncEnumerable sequence. The index of each source element is used in the projected form of that element.
SelectMany<TSource,TResult>(IAsyncEnumerable, Func<TSource,IEnumerable>) Projects each element of a sequence to an IEnumerable and flattens the resulting sequences into one IAsyncEnumerable sequence.
SelectMany<TSource,TResult>(IAsyncEnumerable, Func<TSource,IAsyncEnumerable>) Projects each element of a sequence to an IAsyncEnumerable and flattens the resulting sequences into one IAsyncEnumerable sequence.
SelectMany<TSource,TResult>(IAsyncEnumerable, Func<TSource,CancellationToken,ValueTask<IEnumerable>>) Projects each element of a sequence to an IEnumerable and flattens the resulting sequences into one IAsyncEnumerable sequence.

SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable, Func<TSource,CancellationToken,ValueTask<IEnumerable>>, Func<TSource,TCollection,CancellationToken,ValueTask>)

Source:

SelectMany.cs

Source:

SelectMany.cs

Projects each element of a sequence to an IEnumerable, flattens the resulting sequences into one IAsyncEnumerable 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

resultSelector

Func<TSource,TCollection,CancellationToken,ValueTask>

A transform function to apply to each element of the intermediate sequence.

Returns

An IAsyncEnumerable 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

Applies to

SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable, Func<TSource,Int32,CancellationToken,ValueTask<IEnumerable>>, Func<TSource,TCollection,CancellationToken,ValueTask>)

Source:

SelectMany.cs

Source:

SelectMany.cs

Projects each element of a sequence to an IEnumerable, flattens the resulting sequences into one IAsyncEnumerable 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

resultSelector

Func<TSource,TCollection,CancellationToken,ValueTask>

A transform function to apply to each element of the intermediate sequence.

Returns

An IAsyncEnumerable 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

Applies to

SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable, Func<TSource,Int32,IEnumerable>, Func<TSource,TCollection,TResult>)

Source:

SelectMany.cs

Source:

SelectMany.cs

Projects each element of a sequence to an IEnumerable, flattens the resulting sequences into one IAsyncEnumerable 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

collectionSelector

Func<TSource,Int32,IEnumerable>

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 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

Applies to

SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable, Func<TSource,Int32,IAsyncEnumerable>, Func<TSource, TCollection,CancellationToken,ValueTask>)

Source:

SelectMany.cs

Source:

SelectMany.cs

Projects each element of a sequence to an IAsyncEnumerable, flattens the resulting sequences into one IAsyncEnumerable 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

collectionSelector

Func<TSource,Int32,IAsyncEnumerable>

A transform function to apply to each element of the input sequence.

resultSelector

Func<TSource,TCollection,CancellationToken,ValueTask>

A transform function to apply to each element of the intermediate sequence.

Returns

An IAsyncEnumerable 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

Applies to

SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable, Func<TSource,IEnumerable>, Func<TSource,TCollection,TResult>)

Source:

SelectMany.cs

Source:

SelectMany.cs

Projects each element of a sequence to an IEnumerable, flattens the resulting sequences into one IAsyncEnumerable 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

collectionSelector

Func<TSource,IEnumerable>

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 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

Applies to

SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable, Func<TSource,IAsyncEnumerable>, Func<TSource,TCollection,TResult>)

Source:

SelectMany.cs

Source:

SelectMany.cs

Projects each element of a sequence to an IAsyncEnumerable, flattens the resulting sequences into one IAsyncEnumerable 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

collectionSelector

Func<TSource,IAsyncEnumerable>

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 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

Applies to

SelectMany<TSource,TCollection,TResult>(IAsyncEnumerable, Func<TSource,IAsyncEnumerable>, Func<TSource,TCollection, CancellationToken,ValueTask>)

Source:

SelectMany.cs

Source:

SelectMany.cs

Projects each element of a sequence to an IAsyncEnumerable, flattens the resulting sequences into one IAsyncEnumerable 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

collectionSelector

Func<TSource,IAsyncEnumerable>

A transform function to apply to each element of the input sequence.

resultSelector

Func<TSource,TCollection,CancellationToken,ValueTask>

A transform function to apply to each element of the intermediate sequence.

Returns

An IAsyncEnumerable 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

Applies to

SelectMany<TSource,TResult>(IAsyncEnumerable, Func<TSource,Int32,CancellationToken,ValueTask<IEnumerable>>)

Source:

SelectMany.cs

Source:

SelectMany.cs

Projects each element of a sequence to an IEnumerable and flattens the resulting sequences into one IAsyncEnumerable 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

Returns

An IAsyncEnumerable whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.

Exceptions

Applies to

SelectMany<TSource,TResult>(IAsyncEnumerable, Func<TSource,Int32,IEnumerable>)

Source:

SelectMany.cs

Source:

SelectMany.cs

Projects each element of a sequence to an IEnumerable and flattens the resulting sequences into one IAsyncEnumerable 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

Returns

An IAsyncEnumerable whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.

Exceptions

Applies to

SelectMany<TSource,TResult>(IAsyncEnumerable, Func<TSource,Int32,IAsyncEnumerable>)

Source:

SelectMany.cs

Source:

SelectMany.cs

Projects each element of a sequence to an IAsyncEnumerable and flattens the resulting sequences into one IAsyncEnumerable 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

Returns

An IAsyncEnumerable whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.

Exceptions

Applies to

SelectMany<TSource,TResult>(IAsyncEnumerable, Func<TSource,IEnumerable>)

Source:

SelectMany.cs

Source:

SelectMany.cs

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

selector

Func<TSource,IEnumerable>

A transform function to apply to each element.

Returns

An IAsyncEnumerable whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.

Exceptions

Applies to

SelectMany<TSource,TResult>(IAsyncEnumerable, Func<TSource,IAsyncEnumerable>)

Source:

SelectMany.cs

Source:

SelectMany.cs

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

Returns

An IAsyncEnumerable whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.

Exceptions

Applies to

SelectMany<TSource,TResult>(IAsyncEnumerable, Func<TSource,CancellationToken,ValueTask<IEnumerable>>)

Source:

SelectMany.cs

Source:

SelectMany.cs

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

Returns

An IAsyncEnumerable whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.

Exceptions

Applies to