Enumerable.ExceptBy Yöntem

Tanım

Aşırı Yüklemeler

ExceptBy<TSource,TKey>(IEnumerable<TSource>, IEnumerable<TKey>, Func<TSource,TKey>)

Belirtilen anahtar seçici işlevine göre iki sıranın küme farkını üretir.

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

Belirtilen anahtar seçici işlevine göre iki sıranın küme farkını üretir.

ExceptBy<TSource,TKey>(IEnumerable<TSource>, IEnumerable<TKey>, Func<TSource,TKey>)

Belirtilen anahtar seçici işlevine göre iki sıranın küme farkını üretir.

public:
generic <typename TSource, typename TKey>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<TSource> ^ ExceptBy(System::Collections::Generic::IEnumerable<TSource> ^ first, System::Collections::Generic::IEnumerable<TKey> ^ second, Func<TSource, TKey> ^ keySelector);
public static System.Collections.Generic.IEnumerable<TSource> ExceptBy<TSource,TKey> (this System.Collections.Generic.IEnumerable<TSource> first, System.Collections.Generic.IEnumerable<TKey> second, Func<TSource,TKey> keySelector);
static member ExceptBy : seq<'Source> * seq<'Key> * Func<'Source, 'Key> -> seq<'Source>
<Extension()>
Public Function ExceptBy(Of TSource, TKey) (first As IEnumerable(Of TSource), second As IEnumerable(Of TKey), keySelector As Func(Of TSource, TKey)) As IEnumerable(Of TSource)

Tür Parametreleri

TSource

Giriş dizisi öğelerinin türü.

TKey

Öğeleri tanımlamak için anahtar türü.

Parametreler

first
IEnumerable<TSource>

IEnumerable<T> içinde olmayan second anahtarları döndürülür.

second
IEnumerable<TKey>

IEnumerable<T> İlk dizide de gerçekleşen anahtarları, bu öğelerin döndürülen diziden kaldırılmasına neden olur.

keySelector
Func<TSource,TKey>

Her öğenin anahtarını ayıklamak için bir işlev.

Döndürülenler

IEnumerable<TSource>

İki dizinin öğelerinin küme farkını içeren bir dizi.

Ayrıca bkz.

Şunlara uygulanır

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

Belirtilen anahtar seçici işlevine göre iki sıranın küme farkını üretir.

public:
generic <typename TSource, typename TKey>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<TSource> ^ ExceptBy(System::Collections::Generic::IEnumerable<TSource> ^ first, System::Collections::Generic::IEnumerable<TKey> ^ second, Func<TSource, TKey> ^ keySelector, System::Collections::Generic::IEqualityComparer<TKey> ^ comparer);
public static System.Collections.Generic.IEnumerable<TSource> ExceptBy<TSource,TKey> (this System.Collections.Generic.IEnumerable<TSource> first, System.Collections.Generic.IEnumerable<TKey> second, Func<TSource,TKey> keySelector, System.Collections.Generic.IEqualityComparer<TKey>? comparer);
static member ExceptBy : seq<'Source> * seq<'Key> * Func<'Source, 'Key> * System.Collections.Generic.IEqualityComparer<'Key> -> seq<'Source>
<Extension()>
Public Function ExceptBy(Of TSource, TKey) (first As IEnumerable(Of TSource), second As IEnumerable(Of TKey), keySelector As Func(Of TSource, TKey), comparer As IEqualityComparer(Of TKey)) As IEnumerable(Of TSource)

Tür Parametreleri

TSource

Giriş dizisi öğelerinin türü.

TKey

Öğeleri tanımlamak için anahtar türü.

Parametreler

first
IEnumerable<TSource>

IEnumerable<T> içinde olmayan second anahtarları döndürülür.

second
IEnumerable<TKey>

IEnumerable<T> İlk dizide de gerçekleşen anahtarları, bu öğelerin döndürülen diziden kaldırılmasına neden olur.

keySelector
Func<TSource,TKey>

Her öğenin anahtarını ayıklamak için bir işlev.

comparer
IEqualityComparer<TKey>

IEqualityComparer<T> Değerleri karşılaştırmak için.

Döndürülenler

IEnumerable<TSource>

İki dizinin öğelerinin küme farkını içeren bir dizi.

Ayrıca bkz.

Şunlara uygulanır