Język

AsyncEnumerable.Zip Metoda

Definicja

Przeciążenia

Nazwa Opis
Zip<TFirst,TSecond,TResult>(IAsyncEnumerable<TFirst>, IAsyncEnumerable<TSecond>, Func<TFirst,TSecond,CancellationToken,ValueTask<TResult>>)

Stosuje określoną funkcję do odpowiednich elementów dwóch sekwencji, tworząc sekwencję wyników.

Zip<TFirst,TSecond,TResult>(IAsyncEnumerable<TFirst>, IAsyncEnumerable<TSecond>, Func<TFirst,TSecond,TResult>)

Stosuje określoną funkcję do odpowiednich elementów dwóch sekwencji, tworząc sekwencję wyników.

Zip<TFirst,TSecond,TThird>(IAsyncEnumerable<TFirst>, IAsyncEnumerable<TSecond>, IAsyncEnumerable<TThird>)

Tworzy sekwencję krotki z elementami z trzech określonych sekwencji.

Zip<TFirst,TSecond>(IAsyncEnumerable<TFirst>, IAsyncEnumerable<TSecond>)

Tworzy sekwencję krotki z elementami z dwóch określonych sekwencji.

Zip<TFirst,TSecond,TResult>(IAsyncEnumerable<TFirst>, IAsyncEnumerable<TSecond>, Func<TFirst,TSecond,CancellationToken,ValueTask<TResult>>)

Źródło:
Zip.cs
Źródło:
Zip.cs
Źródło:
Zip.cs
Źródło:
Zip.cs

Stosuje określoną funkcję do odpowiednich elementów dwóch sekwencji, tworząc sekwencję wyników.

public:
generic <typename TFirst, typename TSecond, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TResult> ^ Zip(System::Collections::Generic::IAsyncEnumerable<TFirst> ^ first, System::Collections::Generic::IAsyncEnumerable<TSecond> ^ second, Func<TFirst, TSecond, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<TResult>> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> Zip<TFirst,TSecond,TResult>(this System.Collections.Generic.IAsyncEnumerable<TFirst> first, System.Collections.Generic.IAsyncEnumerable<TSecond> second, Func<TFirst,TSecond,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TResult>> 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>
<Extension()>
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)

Parametry typu

TFirst

Typ elementów pierwszej sekwencji wejściowej.

TSecond

Typ elementów drugiej sekwencji wejściowej.

TResult

Typ elementów sekwencji wyników.

Parametry

first
IAsyncEnumerable<TFirst>

Pierwsza sekwencja do scalenia.

second
IAsyncEnumerable<TSecond>

Druga sekwencja do scalenia.

resultSelector
Func<TFirst,TSecond,CancellationToken,ValueTask<TResult>>

Funkcja określająca sposób scalania elementów z dwóch sekwencji.

Zwraca

IAsyncEnumerable<TResult>

Element IAsyncEnumerable<T> zawierający scalone elementy dwóch sekwencji wejściowych.

Wyjątki

Parametr resultSelector ma wartość null.

Dotyczy

Zip<TFirst,TSecond,TResult>(IAsyncEnumerable<TFirst>, IAsyncEnumerable<TSecond>, Func<TFirst,TSecond,TResult>)

Źródło:
Zip.cs
Źródło:
Zip.cs
Źródło:
Zip.cs
Źródło:
Zip.cs

Stosuje określoną funkcję do odpowiednich elementów dwóch sekwencji, tworząc sekwencję wyników.

public:
generic <typename TFirst, typename TSecond, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TResult> ^ Zip(System::Collections::Generic::IAsyncEnumerable<TFirst> ^ first, System::Collections::Generic::IAsyncEnumerable<TSecond> ^ second, Func<TFirst, TSecond, TResult> ^ resultSelector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> Zip<TFirst,TSecond,TResult>(this System.Collections.Generic.IAsyncEnumerable<TFirst> first, System.Collections.Generic.IAsyncEnumerable<TSecond> second, Func<TFirst,TSecond,TResult> resultSelector);
static member Zip : System.Collections.Generic.IAsyncEnumerable<'First> * System.Collections.Generic.IAsyncEnumerable<'Second> * Func<'First, 'Second, 'Result> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
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)

Parametry typu

TFirst

Typ elementów pierwszej sekwencji wejściowej.

TSecond

Typ elementów drugiej sekwencji wejściowej.

TResult

Typ elementów sekwencji wyników.

Parametry

first
IAsyncEnumerable<TFirst>

Pierwsza sekwencja do scalenia.

second
IAsyncEnumerable<TSecond>

Druga sekwencja do scalenia.

resultSelector
Func<TFirst,TSecond,TResult>

Funkcja określająca sposób scalania elementów z dwóch sekwencji.

Zwraca

IAsyncEnumerable<TResult>

Element IAsyncEnumerable<T> zawierający scalone elementy dwóch sekwencji wejściowych.

Wyjątki

Parametr resultSelector ma wartość null.

Dotyczy

Zip<TFirst,TSecond,TThird>(IAsyncEnumerable<TFirst>, IAsyncEnumerable<TSecond>, IAsyncEnumerable<TThird>)

Źródło:
Zip.cs
Źródło:
Zip.cs
Źródło:
Zip.cs
Źródło:
Zip.cs

Tworzy sekwencję krotki z elementami z trzech określonych sekwencji.

public:
generic <typename TFirst, typename TSecond, typename TThird>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<ValueTuple<TFirst, TSecond, TThird>> ^ Zip(System::Collections::Generic::IAsyncEnumerable<TFirst> ^ first, System::Collections::Generic::IAsyncEnumerable<TSecond> ^ second, System::Collections::Generic::IAsyncEnumerable<TThird> ^ third);
public static System.Collections.Generic.IAsyncEnumerable<(TFirst First, TSecond Second, TThird Third)> Zip<TFirst,TSecond,TThird>(this System.Collections.Generic.IAsyncEnumerable<TFirst> first, System.Collections.Generic.IAsyncEnumerable<TSecond> second, System.Collections.Generic.IAsyncEnumerable<TThird> third);
static member Zip : System.Collections.Generic.IAsyncEnumerable<'First> * System.Collections.Generic.IAsyncEnumerable<'Second> * System.Collections.Generic.IAsyncEnumerable<'hird> -> System.Collections.Generic.IAsyncEnumerable<ValueTuple<'First, 'Second, 'hird>>
<Extension()>
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))

Parametry typu

TFirst

Typ elementów pierwszej sekwencji wejściowej.

TSecond

Typ elementów drugiej sekwencji wejściowej.

TThird

Typ elementów trzeciej sekwencji wejściowej.

Parametry

first
IAsyncEnumerable<TFirst>

Pierwsza sekwencja do scalenia.

second
IAsyncEnumerable<TSecond>

Druga sekwencja do scalenia.

third
IAsyncEnumerable<TThird>

Trzecia sekwencja do scalenia.

Zwraca

IAsyncEnumerable<ValueTuple<TFirst,TSecond,TThird>>

Sekwencja krotki z elementami pobranymi z pierwszej, drugiej i trzeciej sekwencji w tej kolejności.

Wyjątki

Parametr third ma wartość null.

Dotyczy

Zip<TFirst,TSecond>(IAsyncEnumerable<TFirst>, IAsyncEnumerable<TSecond>)

Źródło:
Zip.cs
Źródło:
Zip.cs
Źródło:
Zip.cs
Źródło:
Zip.cs

Tworzy sekwencję krotki z elementami z dwóch określonych sekwencji.

public:
generic <typename TFirst, typename TSecond>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<ValueTuple<TFirst, TSecond>> ^ Zip(System::Collections::Generic::IAsyncEnumerable<TFirst> ^ first, System::Collections::Generic::IAsyncEnumerable<TSecond> ^ second);
public static System.Collections.Generic.IAsyncEnumerable<(TFirst First, TSecond Second)> Zip<TFirst,TSecond>(this System.Collections.Generic.IAsyncEnumerable<TFirst> first, System.Collections.Generic.IAsyncEnumerable<TSecond> second);
static member Zip : System.Collections.Generic.IAsyncEnumerable<'First> * System.Collections.Generic.IAsyncEnumerable<'Second> -> System.Collections.Generic.IAsyncEnumerable<ValueTuple<'First, 'Second>>
<Extension()>
Public Function Zip(Of TFirst, TSecond) (first As IAsyncEnumerable(Of TFirst), second As IAsyncEnumerable(Of TSecond)) As IAsyncEnumerable(Of ValueTuple(Of TFirst, TSecond))

Parametry typu

TFirst

Typ elementów pierwszej sekwencji wejściowej.

TSecond

Typ elementów drugiej sekwencji wejściowej.

Parametry

first
IAsyncEnumerable<TFirst>

Pierwsza sekwencja do scalenia.

second
IAsyncEnumerable<TSecond>

Druga sekwencja do scalenia.

Zwraca

IAsyncEnumerable<ValueTuple<TFirst,TSecond>>

Sekwencja krotki z elementami pobranymi z pierwszej i drugiej sekwencji w tej kolejności.

Wyjątki

Parametr second ma wartość null.

Dotyczy