AsyncEnumerable.Intersect<TSource> Метод

Определение

Создает набор пересечения двух последовательностей.

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)

Параметры типа

TSource

Тип элементов входных последовательностей.

Параметры

first
IAsyncEnumerable<TSource>

Возвращается IAsyncEnumerable<T> отдельный элемент, который также отображается во втором.

second
IAsyncEnumerable<TSource>

Будут IAsyncEnumerable<T> возвращены отдельные элементы, которые также отображаются в первой последовательности.

comparer
IEqualityComparer<TSource>

Значение для сравнения значений IEqualityComparer<T> .

Возвращаемое значение

IAsyncEnumerable<TSource>

Последовательность, содержащая элементы, которые образуют пересечение набора двух последовательностей.

Исключения

second равно null.

Применяется к