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>

두 시퀀스의 집합 교집합을 형성하는 요소가 들어 있는 시퀀스입니다.

예외

secondnull입니다.

적용 대상