AsyncEnumerable.Intersect<TSource> Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Vytvoří průnik množiny dvou sekvencí.
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)
Parametry typu
- TSource
Typ prvků vstupních sekvencí.
Parametry
- first
- IAsyncEnumerable<TSource>
Vrátí IAsyncEnumerable<T> se jedinečné prvky, které se zobrazí také v sekundách.
- second
- IAsyncEnumerable<TSource>
Vrátí IAsyncEnumerable<T> se jedinečné prvky, které se zobrazí také v první sekvenci.
- comparer
- IEqualityComparer<TSource>
Hodnota IEqualityComparer<T> pro porovnání hodnot.
Návraty
Sekvence, která obsahuje prvky, které tvoří průnik množiny dvou sekvencí.
Výjimky
second je null.