-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Collections_EnumerableExtensions_ExceptBy__2
Andrew Koryavchenko edited this page Jun 17, 2018
·
8 revisions
EnumerableExtensions.ExceptBy(TSource, TKey) Method (IEnumerable(TSource), IEnumerable(TSource), Func(TSource, TKey))
Produces the set difference of two sequences by using the specified key to compare values.
Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static IEnumerable<TSource> ExceptBy<TSource, TKey>(
this IEnumerable<TSource> first,
IEnumerable<TSource> second,
Func<TSource, TKey> keySelector
)
VB
<ExtensionAttribute>
Public Shared Function ExceptBy(Of TSource, TKey) (
first As IEnumerable(Of TSource),
second As IEnumerable(Of TSource),
keySelector As Func(Of TSource, TKey)
) As IEnumerable(Of TSource)
F#
[<ExtensionAttribute>]
static member ExceptBy :
first : IEnumerable<'TSource> *
second : IEnumerable<'TSource> *
keySelector : Func<'TSource, 'TKey> -> IEnumerable<'TSource>
- first
- Type: System.Collections.Generic.IEnumerable(TSource)
An IEnumerable(T) whose elements that are not also in second will be returned. - second
- Type: System.Collections.Generic.IEnumerable(TSource)
An IEnumerable(T) whose elements that also occur in the first sequence will cause those elements to be removed from the returned sequence. - keySelector
- Type: System.Func(TSource, TKey)
A function to extract the key for each element.
- TSource
- [Missing documentation for "M:CodeJam.Collections.EnumerableExtensions.ExceptBy
2(System.Collections.Generic.IEnumerable{
0},System.Collections.Generic.IEnumerable{0},System.Func{
0,1})"\]</dd><dt>TKey</dt><dd>\[Missing <typeparam name="TKey"/> documentation for "M:CodeJam.Collections.EnumerableExtensions.ExceptBy
2(System.Collections.Generic.IEnumerable{0},System.Collections.Generic.IEnumerable{
0},System.Func{0,
1})"]
Type: IEnumerable(TSource)
A sequence that contains the set difference of the elements of two sequences.
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(TSource). When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
EnumerableExtensions Class
ExceptBy Overload
CodeJam.Collections Namespace