AsyncEnumerable.LeftJoin Method (System.Linq) (original) (raw)
Definition
Overloads
LeftJoin<TOuter,TInner,TKey,TResult>(IAsyncEnumerable, IAsyncEnumerable, Func<TOuter,CancellationToken,ValueTask>, Func<TInner,CancellationToken,ValueTask>, Func<TOuter, TInner,CancellationToken,ValueTask>, IEqualityComparer) | Correlates the elements of two sequences based on matching keys. |
---|---|
LeftJoin<TOuter,TInner,TKey,TResult>(IAsyncEnumerable, IAsyncEnumerable, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,TInner,TResult>, IEqualityComparer) | Correlates the elements of two sequences based on matching keys. |
LeftJoin<TOuter,TInner,TKey,TResult>(IAsyncEnumerable, IAsyncEnumerable, Func<TOuter,CancellationToken,ValueTask>, Func<TInner,CancellationToken,ValueTask>, Func<TOuter, TInner,CancellationToken,ValueTask>, IEqualityComparer)
Source:
Correlates the elements of two sequences based on matching keys.
public static System.Collections.Generic.IAsyncEnumerable<TResult> LeftJoin<TOuter,TInner,TKey,TResult>(this System.Collections.Generic.IAsyncEnumerable<TOuter> outer, System.Collections.Generic.IAsyncEnumerable<TInner> inner, Func<TOuter,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TKey>> outerKeySelector, Func<TInner,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TKey>> innerKeySelector, Func<TOuter,TInner?,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TResult>> resultSelector, System.Collections.Generic.IEqualityComparer<TKey>? comparer = default);
static member LeftJoin : System.Collections.Generic.IAsyncEnumerable<'Outer> * System.Collections.Generic.IAsyncEnumerable<'Inner> * Func<'Outer, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Key>> * Func<'Inner, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Key>> * Func<'Outer, 'Inner, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function LeftJoin(Of TOuter, TInner, TKey, TResult) (outer As IAsyncEnumerable(Of TOuter), inner As IAsyncEnumerable(Of TInner), outerKeySelector As Func(Of TOuter, CancellationToken, ValueTask(Of TKey)), innerKeySelector As Func(Of TInner, CancellationToken, ValueTask(Of TKey)), resultSelector As Func(Of TOuter, TInner, CancellationToken, ValueTask(Of TResult)), Optional comparer As IEqualityComparer(Of TKey) = Nothing) As IAsyncEnumerable(Of TResult)
Type Parameters
TOuter
The type of the elements of the first sequence.
TInner
The type of the elements of the second sequence.
TKey
The type of the keys returned by the key selector functions.
TResult
The type of the result elements.
Parameters
Returns
An IEnumerable that has elements of type TResult
that are obtained by performing a left outer join on two sequences.
Exceptions
Applies to
LeftJoin<TOuter,TInner,TKey,TResult>(IAsyncEnumerable, IAsyncEnumerable, Func<TOuter,TKey>, Func<TInner,TKey>, Func<TOuter,TInner,TResult>, IEqualityComparer)
Source:
Correlates the elements of two sequences based on matching keys.
public static System.Collections.Generic.IAsyncEnumerable<TResult> LeftJoin<TOuter,TInner,TKey,TResult>(this System.Collections.Generic.IAsyncEnumerable<TOuter> outer, System.Collections.Generic.IAsyncEnumerable<TInner> inner, Func<TOuter,TKey> outerKeySelector, Func<TInner,TKey> innerKeySelector, Func<TOuter,TInner?,TResult> resultSelector, System.Collections.Generic.IEqualityComparer<TKey>? comparer = default);
static member LeftJoin : System.Collections.Generic.IAsyncEnumerable<'Outer> * System.Collections.Generic.IAsyncEnumerable<'Inner> * Func<'Outer, 'Key> * Func<'Inner, 'Key> * Func<'Outer, 'Inner, 'Result> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function LeftJoin(Of TOuter, TInner, TKey, TResult) (outer As IAsyncEnumerable(Of TOuter), inner As IAsyncEnumerable(Of TInner), outerKeySelector As Func(Of TOuter, TKey), innerKeySelector As Func(Of TInner, TKey), resultSelector As Func(Of TOuter, TInner, TResult), Optional comparer As IEqualityComparer(Of TKey) = Nothing) As IAsyncEnumerable(Of TResult)
Type Parameters
TOuter
The type of the elements of the first sequence.
TInner
The type of the elements of the second sequence.
TKey
The type of the keys returned by the key selector functions.
TResult
The type of the result elements.
Parameters
outerKeySelector
Func<TOuter,TKey>
A function to extract the join key from each element of the first sequence.
innerKeySelector
Func<TInner,TKey>
A function to extract the join key from each element of the second sequence.
resultSelector
Func<TOuter,TInner,TResult>
A function to create a result element from two matching elements.
Returns
An IAsyncEnumerable that has elements of type TResult
that are obtained by performing a left outer join on two sequences.