Language

AsyncEnumerable.SelectMany Method

Definition

Overloads

Name Description
SelectMany(IAsyncEnumerable, Func>, Func)

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(IAsyncEnumerable, Func>>, Func>)

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(IAsyncEnumerable, Func>>, Func>)

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(IAsyncEnumerable, Func>, Func)

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(IAsyncEnumerable, Func>, Func>)

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(IAsyncEnumerable, Func>, Func)

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(IAsyncEnumerable, Func>, Func>)

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(IAsyncEnumerable, Func>)

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(IAsyncEnumerable, Func>>)

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(IAsyncEnumerable, Func>>)

Projects each element of a sequence to an IEnumerable and flattens the resulting sequences into one IAsyncEnumerable sequence.

SelectMany(IAsyncEnumerable, Func>)

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(IAsyncEnumerable, Func>)

Projects each element of a sequence to an IEnumerable and flattens the resulting sequences into one IAsyncEnumerable sequence.

SelectMany(IAsyncEnumerable, Func>)

Projects each element of a sequence to an IAsyncEnumerable and flattens the resulting sequences into one IAsyncEnumerable sequence.

SelectMany(IAsyncEnumerable, Func>, Func)

Source:
SelectMany.cs
Source:
SelectMany.cs
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 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ collectionSelector, Func ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> collectionSelector, Func 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>

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

A sequence of values to project.

collectionSelector
FuncIAsyncEnumerable>

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

resultSelector
Func

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

resultSelector is null.

Applies to

SelectMany(IAsyncEnumerable, Func>>, Func>)

Source:
SelectMany.cs
Source:
SelectMany.cs
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 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^>> ^ collectionSelector, Func> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func>> collectionSelector, Func> resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask>> * Func<'Source, 'Collection, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>

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

A sequence of values to project.

collectionSelector
FuncCancellationToken,ValueTask<IEnumerable>>

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

resultSelector
FuncCancellationToken,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

resultSelector is null.

Applies to

SelectMany(IAsyncEnumerable, Func>>, Func>)

Source:
SelectMany.cs
Source:
SelectMany.cs
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 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^>> ^ collectionSelector, Func> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func>> collectionSelector, Func> resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask>> * Func<'Source, 'Collection, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>

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

A sequence of values to project.

collectionSelector
FuncInt32,CancellationToken,ValueTask<IEnumerable>>

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

resultSelector
FuncCancellationToken,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

resultSelector is null.

Applies to

SelectMany(IAsyncEnumerable, Func>, Func)

Source:
SelectMany.cs
Source:
SelectMany.cs
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 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ collectionSelector, Func ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> collectionSelector, Func resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, seq<'Collection>> * Func<'Source, 'Collection, 'Result> -> System.Collections.Generic.IAsyncEnumerable<'Result>

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

A sequence of values to project.

collectionSelector
FuncInt32,IEnumerable>

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

resultSelector
Func

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

resultSelector is null.

Applies to

SelectMany(IAsyncEnumerable, Func>, Func>)

Source:
SelectMany.cs
Source:
SelectMany.cs
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 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ collectionSelector, Func> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> collectionSelector, Func> 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>

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

A sequence of values to project.

collectionSelector
FuncInt32,IAsyncEnumerable>

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

resultSelector
FuncCancellationToken,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

resultSelector is null.

Applies to

SelectMany(IAsyncEnumerable, Func>, Func)

Source:
SelectMany.cs
Source:
SelectMany.cs
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 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ collectionSelector, Func ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> collectionSelector, Func resultSelector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, seq<'Collection>> * Func<'Source, 'Collection, 'Result> -> System.Collections.Generic.IAsyncEnumerable<'Result>

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

A sequence of values to project.

collectionSelector
FuncIEnumerable>

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

resultSelector
Func

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

resultSelector is null.

Applies to

SelectMany(IAsyncEnumerable, Func>, Func>)

Source:
SelectMany.cs
Source:
SelectMany.cs
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 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ collectionSelector, Func> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> collectionSelector, Func> 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>

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

A sequence of values to project.

collectionSelector
FuncIAsyncEnumerable>

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

resultSelector
FuncCancellationToken,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

resultSelector is null.

Applies to

SelectMany(IAsyncEnumerable, Func>)

Source:
SelectMany.cs
Source:
SelectMany.cs
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 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, seq<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>

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

A sequence of values to project.

selector
FuncInt32,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

selector is null.

Applies to

SelectMany(IAsyncEnumerable, Func>>)

Source:
SelectMany.cs
Source:
SelectMany.cs
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 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^>> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func>> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask>> -> System.Collections.Generic.IAsyncEnumerable<'Result>

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

A sequence of values to project.

selector
FuncInt32,CancellationToken,ValueTask<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

selector is null.

Applies to

SelectMany(IAsyncEnumerable, Func>>)

Source:
SelectMany.cs
Source:
SelectMany.cs
Source:
SelectMany.cs
Source:
SelectMany.cs

Projects each element of a sequence to an IEnumerable and flattens the resulting sequences into one IAsyncEnumerable sequence.

public:
generic 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^>> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func>> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask>> -> System.Collections.Generic.IAsyncEnumerable<'Result>

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

A sequence of values to project.

selector
FuncCancellationToken,ValueTask<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

selector is null.

Applies to

SelectMany(IAsyncEnumerable, Func>)

Source:
SelectMany.cs
Source:
SelectMany.cs
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 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Collections.Generic.IAsyncEnumerable<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>

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

A sequence of values to project.

selector
FuncInt32,IAsyncEnumerable>

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

selector is null.

Applies to

SelectMany(IAsyncEnumerable, Func>)

Source:
SelectMany.cs
Source:
SelectMany.cs
Source:
SelectMany.cs
Source:
SelectMany.cs

Projects each element of a sequence to an IEnumerable and flattens the resulting sequences into one IAsyncEnumerable sequence.

public:
generic 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, seq<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>

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

A sequence of values to project.

selector
FuncIEnumerable>

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

selector is null.

Applies to

SelectMany(IAsyncEnumerable, Func>)

Source:
SelectMany.cs
Source:
SelectMany.cs
Source:
SelectMany.cs
Source:
SelectMany.cs

Projects each element of a sequence to an IAsyncEnumerable and flattens the resulting sequences into one IAsyncEnumerable sequence.

public:
generic 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ SelectMany(System::Collections::Generic::IAsyncEnumerable ^ source, Func ^> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable SelectMany(this System.Collections.Generic.IAsyncEnumerable source, Func> selector);
static member SelectMany : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Collections.Generic.IAsyncEnumerable<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>

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

A sequence of values to project.

selector
FuncIAsyncEnumerable>

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

selector is null.

Applies to