Bahasa

AsyncEnumerable.Except<TSource> Metode

Definisi

Menghasilkan perbedaan yang ditetapkan dari dua urutan.

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)

Jenis parameter

TSource

Jenis elemen urutan input.

Parameter

first
IAsyncEnumerable<TSource>

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

second
IAsyncEnumerable<TSource>

Elemen IAsyncEnumerable<T> yang juga terjadi dalam urutan pertama akan menyebabkan elemen tersebut dihapus dari urutan yang dikembalikan.

comparer
IEqualityComparer<TSource>

IEqualityComparer<T> Untuk membandingkan nilai.

Mengembalikan

IAsyncEnumerable<TSource>

Urutan yang berisi perbedaan set elemen dari dua urutan.

Pengecualian

second adalah null.

Berlaku untuk