AsyncEnumerable.ExceptBy 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| Name | Description |
|---|---|
| ExceptBy<TSource,TKey>(IAsyncEnumerable<TSource>, IAsyncEnumerable<TKey>, Func<TSource,TKey>, IEqualityComparer<TKey>) |
지정된 키 선택기 함수에 따라 두 시퀀스의 집합 차이를 생성합니다. |
| ExceptBy<TSource,TKey>(IAsyncEnumerable<TSource>, IAsyncEnumerable<TKey>, Func<TSource,CancellationToken,ValueTask<TKey>>, IEqualityComparer<TKey>) |
지정된 키 선택기 함수에 따라 두 시퀀스의 집합 차이를 생성합니다. |
ExceptBy<TSource,TKey>(IAsyncEnumerable<TSource>, IAsyncEnumerable<TKey>, Func<TSource,TKey>, IEqualityComparer<TKey>)
- Source:
- ExceptBy.cs
- Source:
- ExceptBy.cs
- Source:
- ExceptBy.cs
지정된 키 선택기 함수에 따라 두 시퀀스의 집합 차이를 생성합니다.
public static System.Collections.Generic.IAsyncEnumerable<TSource> ExceptBy<TSource,TKey>(this System.Collections.Generic.IAsyncEnumerable<TSource> first, System.Collections.Generic.IAsyncEnumerable<TKey> second, Func<TSource,TKey> keySelector, System.Collections.Generic.IEqualityComparer<TKey>? comparer = default);
static member ExceptBy : System.Collections.Generic.IAsyncEnumerable<'Source> * System.Collections.Generic.IAsyncEnumerable<'Key> * Func<'Source, 'Key> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function ExceptBy(Of TSource, TKey) (first As IAsyncEnumerable(Of TSource), second As IAsyncEnumerable(Of TKey), keySelector As Func(Of TSource, TKey), Optional comparer As IEqualityComparer(Of TKey) = Nothing) As IAsyncEnumerable(Of TSource)
형식 매개 변수
- TSource
입력 시퀀스의 요소 형식입니다.
- TKey
요소를 식별할 키의 형식입니다.
매개 변수
- first
- IAsyncEnumerable<TSource>
IAsyncEnumerable<T> 해당 키도 없는 second 키가 반환됩니다.
- second
- IAsyncEnumerable<TKey>
IAsyncEnumerable<T> 첫 번째 시퀀스에서 발생하는 키로 인해 반환된 시퀀스에서 해당 요소가 제거됩니다.
- keySelector
- Func<TSource,TKey>
각 요소에 대한 키를 추출하는 함수입니다.
- comparer
- IEqualityComparer<TKey>
IEqualityComparer<T> 값을 비교할 값입니다.
반품
두 시퀀스의 요소 집합 차이를 포함하는 시퀀스입니다.
예외
keySelector은 null입니다.
적용 대상
ExceptBy<TSource,TKey>(IAsyncEnumerable<TSource>, IAsyncEnumerable<TKey>, Func<TSource,CancellationToken,ValueTask<TKey>>, IEqualityComparer<TKey>)
- Source:
- ExceptBy.cs
- Source:
- ExceptBy.cs
- Source:
- ExceptBy.cs
지정된 키 선택기 함수에 따라 두 시퀀스의 집합 차이를 생성합니다.
public static System.Collections.Generic.IAsyncEnumerable<TSource> ExceptBy<TSource,TKey>(this System.Collections.Generic.IAsyncEnumerable<TSource> first, System.Collections.Generic.IAsyncEnumerable<TKey> second, Func<TSource,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TKey>> keySelector, System.Collections.Generic.IEqualityComparer<TKey>? comparer = default);
static member ExceptBy : System.Collections.Generic.IAsyncEnumerable<'Source> * System.Collections.Generic.IAsyncEnumerable<'Key> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Key>> * System.Collections.Generic.IEqualityComparer<'Key> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function ExceptBy(Of TSource, TKey) (first As IAsyncEnumerable(Of TSource), second As IAsyncEnumerable(Of TKey), keySelector As Func(Of TSource, CancellationToken, ValueTask(Of TKey)), Optional comparer As IEqualityComparer(Of TKey) = Nothing) As IAsyncEnumerable(Of TSource)
형식 매개 변수
- TSource
입력 시퀀스의 요소 형식입니다.
- TKey
요소를 식별할 키의 형식입니다.
매개 변수
- first
- IAsyncEnumerable<TSource>
IAsyncEnumerable<T> 해당 키도 없는 second 키가 반환됩니다.
- second
- IAsyncEnumerable<TKey>
IAsyncEnumerable<T> 첫 번째 시퀀스에서 발생하는 키로 인해 반환된 시퀀스에서 해당 요소가 제거됩니다.
- keySelector
- Func<TSource,CancellationToken,ValueTask<TKey>>
각 요소에 대한 키를 추출하는 함수입니다.
- comparer
- IEqualityComparer<TKey>
IEqualityComparer<T> 값을 비교할 값입니다.
반품
두 시퀀스의 요소 집합 차이를 포함하는 시퀀스입니다.
예외
keySelector은 null입니다.