AsyncEnumerable.Except<TSource> Methode

Definitie

Produceert het setverschil van twee reeksen.

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)

Type parameters

TSource

Het type van de elementen van de invoerreeksen.

Parameters

first
IAsyncEnumerable<TSource>

Een IAsyncEnumerable<T> wiens elementen niet ook in de tweede worden geretourneerd.

second
IAsyncEnumerable<TSource>

Een IAsyncEnumerable<T> wiens elementen ook in de eerste reeks voorkomen, zorgt ervoor dat deze elementen worden verwijderd uit de geretourneerde reeks.

comparer
IEqualityComparer<TSource>

Een IEqualityComparer<T> om waarden te vergelijken.

Retouren

IAsyncEnumerable<TSource>

Een reeks die het setverschil van de elementen van twee reeksen bevat.

Uitzonderingen

second is null.

Van toepassing op