Jazyk

AsyncEnumerable.Except<TSource> Metoda

Definice

Vytvoří množinu dvou sekvencí.

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

Jejíž IAsyncEnumerable<T> prvky, které nejsou také v sekundách, budou vráceny.

second
IAsyncEnumerable<TSource>

Jejíž IAsyncEnumerable<T> prvky, které se vyskytují také v první sekvenci, způsobí odebrání těchto prvků z vrácené sekvence.

comparer
IEqualityComparer<TSource>

Hodnota IEqualityComparer<T> pro porovnání hodnot.

Návraty

IAsyncEnumerable<TSource>

Sekvence, která obsahuje set rozdíl prvků dvou sekvencí.

Výjimky

second je null.

Platí pro