AsyncEnumerable.UnionBy Methode

Definitie

Overloads

Name Description
UnionBy<TSource,TKey>(IAsyncEnumerable<TSource>, IAsyncEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

Produceert de set-samenvoeging van twee reeksen volgens een opgegeven sleutelkiezerfunctie.

UnionBy<TSource,TKey>(IAsyncEnumerable<TSource>, IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<TKey>>, IEqualityComparer<TKey>)

Produceert de set-samenvoeging van twee reeksen volgens een opgegeven sleutelkiezerfunctie.

UnionBy<TSource,TKey>(IAsyncEnumerable<TSource>, IAsyncEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

Bron:
UnionBy.cs
Bron:
UnionBy.cs
Bron:
UnionBy.cs

Produceert de set-samenvoeging van twee reeksen volgens een opgegeven sleutelkiezerfunctie.

public static System.Collections.Generic.IAsyncEnumerable<TSource> UnionBy<TSource,TKey>(this System.Collections.Generic.IAsyncEnumerable<TSource> first, System.Collections.Generic.IAsyncEnumerable<TSource> second, Func<TSource,TKey> keySelector, System.Collections.Generic.IEqualityComparer<TKey>? comparer = default);
static member UnionBy : System.Collections.Generic.IAsyncEnumerable<'Source> * System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, 'Key> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function UnionBy(Of TSource, TKey) (first As IAsyncEnumerable(Of TSource), second As IAsyncEnumerable(Of TSource), keySelector As Func(Of TSource, TKey), Optional comparer As IEqualityComparer(Of TKey) = Nothing) As IAsyncEnumerable(Of TSource)

Type parameters

TSource

Het type van de elementen van de invoerreeksen.

TKey

Het type sleutel om elementen te identificeren.

Parameters

first
IAsyncEnumerable<TSource>

Een IAsyncEnumerable<T> wiens afzonderlijke elementen de eerste set vormen voor de samenvoeging.

second
IAsyncEnumerable<TSource>

Een IAsyncEnumerable<T> wiens afzonderlijke elementen de tweede set vormen voor de samenvoeging.

keySelector
Func<TSource,TKey>

Een functie om de sleutel voor elk element te extraheren.

comparer
IEqualityComparer<TKey>

De IEqualityComparer<T> waarden die moeten worden vergeleken.

Retouren

IAsyncEnumerable<TSource>

Een IAsyncEnumerable<T> die de elementen uit beide invoerreeksen bevat, met uitzondering van duplicaten.

Uitzonderingen

second is null.

Van toepassing op

UnionBy<TSource,TKey>(IAsyncEnumerable<TSource>, IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<TKey>>, IEqualityComparer<TKey>)

Bron:
UnionBy.cs
Bron:
UnionBy.cs
Bron:
UnionBy.cs

Produceert de set-samenvoeging van twee reeksen volgens een opgegeven sleutelkiezerfunctie.

public static System.Collections.Generic.IAsyncEnumerable<TSource> UnionBy<TSource,TKey>(this System.Collections.Generic.IAsyncEnumerable<TSource> first, System.Collections.Generic.IAsyncEnumerable<TSource> second, Func<TSource,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TKey>> keySelector, System.Collections.Generic.IEqualityComparer<TKey>? comparer = default);
static member UnionBy : System.Collections.Generic.IAsyncEnumerable<'Source> * System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Key>> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function UnionBy(Of TSource, TKey) (first As IAsyncEnumerable(Of TSource), second As IAsyncEnumerable(Of TSource), keySelector As Func(Of TSource, CancellationToken, ValueTask(Of TKey)), Optional comparer As IEqualityComparer(Of TKey) = Nothing) As IAsyncEnumerable(Of TSource)

Type parameters

TSource

Het type van de elementen van de invoerreeksen.

TKey

Het type sleutel om elementen te identificeren.

Parameters

first
IAsyncEnumerable<TSource>

Een IAsyncEnumerable<T> wiens afzonderlijke elementen de eerste set vormen voor de samenvoeging.

second
IAsyncEnumerable<TSource>

Een IAsyncEnumerable<T> wiens afzonderlijke elementen de tweede set vormen voor de samenvoeging.

keySelector
Func<TSource,CancellationToken,ValueTask<TKey>>

Een functie om de sleutel voor elk element te extraheren.

comparer
IEqualityComparer<TKey>

De IEqualityComparer<T> waarden die moeten worden vergeleken.

Retouren

IAsyncEnumerable<TSource>

Een IAsyncEnumerable<T> die de elementen uit beide invoerreeksen bevat, met uitzondering van duplicaten.

Uitzonderingen

second is null.

Van toepassing op