Returns the set of elements in the first sequence which aren't in the second sequence, according to a given key selector.
Namespace: MoreLinq.ExtensionsMoreLinq (in MoreLinq.dll) Version: 3.0.0
Syntaxpublic static IEnumerable<TSource> ExceptBy<TSource, TKey>( this IEnumerable<TSource> first, IEnumerable<TSource> second, Func<TSource, TKey> keySelector )
<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)
public: [ExtensionAttribute] generic<typename TSource, typename TKey> static IEnumerable<TSource>^ ExceptBy( IEnumerable<TSource>^ first, IEnumerable<TSource>^ second, Func<TSource, TKey>^ keySelector )
[<ExtensionAttribute>] static member ExceptBy : first : IEnumerable<'TSource> * second : IEnumerable<'TSource> * keySelector : Func<'TSource, 'TKey> -> IEnumerable<'TSource>Parameters
Type:
IEnumerableTSourceA sequence of elements from
firstwhose key was not also a key for any element in
second.
Usage NoteIn Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableTSource. 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).
RemarksThis is a set operation; if multiple elements in first have equal keys, only the first such element is returned. This operator uses deferred execution and streams the results, although a set of keys from second is immediately selected and retained.
See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4