AsyncEnumerable.Distinct<TSource> Methode

Definitie

Retourneert afzonderlijke elementen uit een reeks.

public static System.Collections.Generic.IAsyncEnumerable<TSource> Distinct<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, System.Collections.Generic.IEqualityComparer<TSource>? comparer = default);
static member Distinct : System.Collections.Generic.IAsyncEnumerable<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function Distinct(Of TSource) (source As IAsyncEnumerable(Of TSource), Optional comparer As IEqualityComparer(Of TSource) = Nothing) As IAsyncEnumerable(Of TSource)

Type parameters

TSource

Parameters

source
IAsyncEnumerable<TSource>

De reeks waaruit dubbele elementen moeten worden verwijderd.

comparer
IEqualityComparer<TSource>

Een IEqualityComparer<T> om waarden te vergelijken.

Retouren

IAsyncEnumerable<TSource>

Een IAsyncEnumerable<T> met afzonderlijke elementen uit de bronvolgorde.

Uitzonderingen

source is null.

Van toepassing op