AsyncEnumerable.Zip 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
| Name | Description |
|---|---|
|
Zip |
Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results. |
|
Zip |
Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results. |
|
Zip |
Produces a sequence of tuples with elements from the three specified sequences. |
|
Zip |
Produces a sequence of tuples with elements from the two specified sequences. |
Zip(IAsyncEnumerable, IAsyncEnumerable, Func>)
- Source:
- Zip.cs
- Source:
- Zip.cs
- Source:
- Zip.cs
- Source:
- Zip.cs
Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ Zip(System::Collections::Generic::IAsyncEnumerable ^ first, System::Collections::Generic::IAsyncEnumerable ^ second, Func> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable Zip(this System.Collections.Generic.IAsyncEnumerable first, System.Collections.Generic.IAsyncEnumerable second, Func> resultSelector);
static member Zip : System.Collections.Generic.IAsyncEnumerable<'First> * System.Collections.Generic.IAsyncEnumerable<'Second> * Func<'First, 'Second, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function Zip(Of TFirst, TSecond, TResult) (first As IAsyncEnumerable(Of TFirst), second As IAsyncEnumerable(Of TSecond), resultSelector As Func(Of TFirst, TSecond, CancellationToken, ValueTask(Of TResult))) As IAsyncEnumerable(Of TResult)
Type Parameters
- TFirst
The type of the elements of the first input sequence.
- TSecond
The type of the elements of the second input sequence.
- TResult
The type of the elements of the result sequence.
Parameters
- first
-
IAsyncEnumerable
The first sequence to merge.
- second
-
IAsyncEnumerable
The second sequence to merge.
A function that specifies how to merge the elements from the two sequences.
Returns
An IAsyncEnumerable
Exceptions
resultSelector is null.
Applies to
Zip(IAsyncEnumerable, IAsyncEnumerable, Func)
- Source:
- Zip.cs
- Source:
- Zip.cs
- Source:
- Zip.cs
- Source:
- Zip.cs
Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable ^ Zip(System::Collections::Generic::IAsyncEnumerable ^ first, System::Collections::Generic::IAsyncEnumerable ^ second, Func ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable Zip(this System.Collections.Generic.IAsyncEnumerable first, System.Collections.Generic.IAsyncEnumerable second, Func resultSelector);
static member Zip : System.Collections.Generic.IAsyncEnumerable<'First> * System.Collections.Generic.IAsyncEnumerable<'Second> * Func<'First, 'Second, 'Result> -> System.Collections.Generic.IAsyncEnumerable<'Result>
Public Function Zip(Of TFirst, TSecond, TResult) (first As IAsyncEnumerable(Of TFirst), second As IAsyncEnumerable(Of TSecond), resultSelector As Func(Of TFirst, TSecond, TResult)) As IAsyncEnumerable(Of TResult)
Type Parameters
- TFirst
The type of the elements of the first input sequence.
- TSecond
The type of the elements of the second input sequence.
- TResult
The type of the elements of the result sequence.
Parameters
- first
-
IAsyncEnumerable
The first sequence to merge.
- second
-
IAsyncEnumerable
The second sequence to merge.
- resultSelector
-
Func
A function that specifies how to merge the elements from the two sequences.
Returns
An IAsyncEnumerable
Exceptions
resultSelector is null.
Applies to
Zip(IAsyncEnumerable, IAsyncEnumerable, IAsyncEnumerable)
- Source:
- Zip.cs
- Source:
- Zip.cs
- Source:
- Zip.cs
- Source:
- Zip.cs
Produces a sequence of tuples with elements from the three specified sequences.
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable> ^ Zip(System::Collections::Generic::IAsyncEnumerable ^ first, System::Collections::Generic::IAsyncEnumerable ^ second, System::Collections::Generic::IAsyncEnumerable ^ third);
public static System.Collections.Generic.IAsyncEnumerable<(TFirst First, TSecond Second, TThird Third)> Zip(this System.Collections.Generic.IAsyncEnumerable first, System.Collections.Generic.IAsyncEnumerable second, System.Collections.Generic.IAsyncEnumerable third);
static member Zip : System.Collections.Generic.IAsyncEnumerable<'First> * System.Collections.Generic.IAsyncEnumerable<'Second> * System.Collections.Generic.IAsyncEnumerable<'hird> -> System.Collections.Generic.IAsyncEnumerable>
Public Function Zip(Of TFirst, TSecond, TThird) (first As IAsyncEnumerable(Of TFirst), second As IAsyncEnumerable(Of TSecond), third As IAsyncEnumerable(Of TThird)) As IAsyncEnumerable(Of ValueTuple(Of TFirst, TSecond, TThird))
Type Parameters
- TFirst
The type of the elements of the first input sequence.
- TSecond
The type of the elements of the second input sequence.
- TThird
The type of the elements of the third input sequence.
Parameters
- first
-
IAsyncEnumerable
The first sequence to merge.
- second
-
IAsyncEnumerable
The second sequence to merge.
- third
-
IAsyncEnumerable
The third sequence to merge.
Returns
A sequence of tuples with elements taken from the first, second, and third sequences, in that order.
Exceptions
third is null.
Applies to
Zip(IAsyncEnumerable, IAsyncEnumerable)
- Source:
- Zip.cs
- Source:
- Zip.cs
- Source:
- Zip.cs
- Source:
- Zip.cs
Produces a sequence of tuples with elements from the two specified sequences.
public:
generic
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable> ^ Zip(System::Collections::Generic::IAsyncEnumerable ^ first, System::Collections::Generic::IAsyncEnumerable ^ second);
public static System.Collections.Generic.IAsyncEnumerable<(TFirst First, TSecond Second)> Zip(this System.Collections.Generic.IAsyncEnumerable first, System.Collections.Generic.IAsyncEnumerable second);
static member Zip : System.Collections.Generic.IAsyncEnumerable<'First> * System.Collections.Generic.IAsyncEnumerable<'Second> -> System.Collections.Generic.IAsyncEnumerable>
Public Function Zip(Of TFirst, TSecond) (first As IAsyncEnumerable(Of TFirst), second As IAsyncEnumerable(Of TSecond)) As IAsyncEnumerable(Of ValueTuple(Of TFirst, TSecond))
Type Parameters
- TFirst
The type of the elements of the first input sequence.
- TSecond
The type of the elements of the second input sequence.
Parameters
- first
-
IAsyncEnumerable
The first sequence to merge.
- second
-
IAsyncEnumerable
The second sequence to merge.
Returns
A sequence of tuples with elements taken from the first and second sequences, in that order.
Exceptions
second is null.