AsyncEnumerable.Union<TSource> Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Produceert de set-samenvoeging van twee reeksen.
public static System.Collections.Generic.IAsyncEnumerable<TSource> Union<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> first, System.Collections.Generic.IAsyncEnumerable<TSource> second, System.Collections.Generic.IEqualityComparer<TSource>? comparer = default);
static member Union : System.Collections.Generic.IAsyncEnumerable<'Source> * System.Collections.Generic.IAsyncEnumerable<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function Union(Of TSource) (first As IAsyncEnumerable(Of TSource), second As IAsyncEnumerable(Of TSource), Optional comparer As IEqualityComparer(Of TSource) = Nothing) As IAsyncEnumerable(Of TSource)
Type parameters
- TSource
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.
- comparer
- IEqualityComparer<TSource>
Een IEqualityComparer<T> om sleutels te vergelijken.
Retouren
Een IAsyncEnumerable<T> die de elementen uit beide invoerreeksen bevat, met uitzondering van duplicaten.
Uitzonderingen
second is null.