Skip to content

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

Syntax

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 :