Bahasa

AsyncEnumerable.Intersect<TSource> Metode

Definisi

Menghasilkan persimpangan yang ditetapkan dari dua urutan.

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)

Jenis parameter

TSource

Jenis elemen urutan input.

Parameter

first
IAsyncEnumerable<TSource>

Elemen IAsyncEnumerable<T> berbeda yang juga muncul dalam detik akan dikembalikan.

second
IAsyncEnumerable<TSource>

Elemen IAsyncEnumerable<T> berbeda yang juga muncul dalam urutan pertama akan dikembalikan.

comparer
IEqualityComparer<TSource>

IEqualityComparer<T> Untuk membandingkan nilai.

Mengembalikan

IAsyncEnumerable<TSource>

Urutan yang berisi elemen yang membentuk persimpangan yang ditetapkan dari dua urutan.

Pengecualian

second adalah null.

Berlaku untuk