Enumerable.ExceptBy Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Túlterhelések
| Name | Description |
|---|---|
| ExceptBy<TSource,TKey>(IEnumerable<TSource>, IEnumerable<TKey>, Func<TSource,TKey>) |
Két szekvencia halmazkülönbségét állítja elő egy megadott kulcsválasztó függvény szerint. |
| ExceptBy<TSource,TKey>(IEnumerable<TSource>, IEnumerable<TKey>, Func<TSource,TKey>, IEqualityComparer<TKey>) |
Két szekvencia halmazkülönbségét állítja elő egy megadott kulcsválasztó függvény szerint. |
ExceptBy<TSource,TKey>(IEnumerable<TSource>, IEnumerable<TKey>, Func<TSource,TKey>)
- Forrás:
- Except.cs
- Forrás:
- Except.cs
- Forrás:
- Except.cs
- Forrás:
- Except.cs
- Forrás:
- Except.cs
Két szekvencia halmazkülönbségét állítja elő egy megadott kulcsválasztó függvény szerint.
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ípusparaméterek
- TSource
A bemeneti sorozat elemeinek típusa.
- TKey
Az elemek azonosítására szolgáló kulcs típusa.
Paraméterek
- first
- IEnumerable<TSource>
A IEnumerable<T> rendszer visszaadja azokat a kulcsokat, amelyek nincsenek megadva second .
- second
- IEnumerable<TKey>
Egy IEnumerable<T> olyan kulcs, amely az első sorozatban is előfordul, eltávolítja ezeket az elemeket a visszaadott sorozatból.
- keySelector
- Func<TSource,TKey>
Az egyes elemek kulcsának kinyerésére szolgáló függvény.
Válaszok
Két sorozat elemeinek halmazkülönbségét tartalmazó sorozat.
Lásd még
A következőre érvényes:
ExceptBy<TSource,TKey>(IEnumerable<TSource>, IEnumerable<TKey>, Func<TSource,TKey>, IEqualityComparer<TKey>)
- Forrás:
- Except.cs
- Forrás:
- Except.cs
- Forrás:
- Except.cs
- Forrás:
- Except.cs
- Forrás:
- Except.cs
Két szekvencia halmazkülönbségét állítja elő egy megadott kulcsválasztó függvény szerint.
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ípusparaméterek
- TSource
A bemeneti sorozat elemeinek típusa.
- TKey
Az elemek azonosítására szolgáló kulcs típusa.
Paraméterek
- first
- IEnumerable<TSource>
A IEnumerable<T> rendszer visszaadja azokat a kulcsokat, amelyek nincsenek megadva second .
- second
- IEnumerable<TKey>
Egy IEnumerable<T> olyan kulcs, amely az első sorozatban is előfordul, eltávolítja ezeket az elemeket a visszaadott sorozatból.
- keySelector
- Func<TSource,TKey>
Az egyes elemek kulcsának kinyerésére szolgáló függvény.
- comparer
- IEqualityComparer<TKey>
Az IEqualityComparer<T> értékek összehasonlítása.
Válaszok
Két sorozat elemeinek halmazkülönbségét tartalmazó sorozat.