Dil

AsyncEnumerable.Intersect<TSource> Yöntem

Tanım

İki dizinin küme kesişimini üretir.

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)

Tür Parametreleri

TSource

Giriş dizilerinin öğelerinin türü.

Parametreler

first
IAsyncEnumerable<TSource>

IAsyncEnumerable<T> İkinci olarak da görünen benzersiz öğeleri döndürülür.

second
IAsyncEnumerable<TSource>

IAsyncEnumerable<T> İlk dizide de görünen benzersiz öğeleri döndürülür.

comparer
IEqualityComparer<TSource>

Değerleri karşılaştırmak için bir IEqualityComparer<T>.

Döndürülenler

IAsyncEnumerable<TSource>

İki dizinin küme kesişimini oluşturan öğeleri içeren bir dizi.

Özel durumlar

second, null'e eşittir.

Şunlara uygulanır