AsyncEnumerable.ExceptBy メソッド

定義

オーバーロード

名前 説明
ExceptBy<TSource,TKey>(IAsyncEnumerable<TSource>, IAsyncEnumerable<TKey>, Func<TSource,CancellationToken,ValueTask<TKey>>, IEqualityComparer<TKey>)

指定されたキー セレクター関数に従って、2 つのシーケンスのセット差を生成します。

ExceptBy<TSource,TKey>(IAsyncEnumerable<TSource>, IAsyncEnumerable<TKey>, Func<TSource,TKey>, IEqualityComparer<TKey>)

指定されたキー セレクター関数に従って、2 つのシーケンスのセット差を生成します。

ExceptBy<TSource,TKey>(IAsyncEnumerable<TSource>, IAsyncEnumerable<TKey>, Func<TSource,CancellationToken,ValueTask<TKey>>, IEqualityComparer<TKey>)

ソース:
ExceptBy.cs
ソース:
ExceptBy.cs
ソース:
ExceptBy.cs

指定されたキー セレクター関数に従って、2 つのシーケンスのセット差を生成します。

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>

返品

IAsyncEnumerable<TSource>

2 つのシーケンスの要素のセット差を含むシーケンス。

例外

keySelectornullです。

適用対象

ExceptBy<TSource,TKey>(IAsyncEnumerable<TSource>, IAsyncEnumerable<TKey>, Func<TSource,TKey>, IEqualityComparer<TKey>)

ソース:
ExceptBy.cs
ソース:
ExceptBy.cs
ソース:
ExceptBy.cs

指定されたキー セレクター関数に従って、2 つのシーケンスのセット差を生成します。

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>

返品

IAsyncEnumerable<TSource>

2 つのシーケンスの要素のセット差を含むシーケンス。

例外

keySelectornullです。

適用対象