AsyncEnumerable.Intersect<TSource> Methode

Definitie

Produceert het ingestelde snijpunt van twee reeksen.

public static System.Collections.Generic.IAsyncEnumerable<TSource> Intersect<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> first, System.Collections.Generic.IAsyncEnumerable<TSource> second, System.Collections.Generic.IEqualityComparer<TSource>? comparer = default);
static member Intersect : System.Collections.Generic.IAsyncEnumerable<'Source> * System.Collections.Generic.IAsyncEnumerable<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function Intersect(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

Het type van de elementen van de invoerreeksen.

Parameters

first
IAsyncEnumerable<TSource>

Een IAsyncEnumerable<T> waarvan de afzonderlijke elementen die ook in het tweede worden weergegeven, worden geretourneerd.

second
IAsyncEnumerable<TSource>

Een IAsyncEnumerable<T> waarvan de afzonderlijke elementen die ook in de eerste reeks worden weergegeven, worden geretourneerd.

comparer
IEqualityComparer<TSource>

Een IEqualityComparer<T> om waarden te vergelijken.

Retouren

IAsyncEnumerable<TSource>

Een reeks die de elementen bevat die het set snijpunt van twee reeksen vormen.

Uitzonderingen

second is null.

Van toepassing op