Merges two ordered sequences into one. Additional parameters specify the element key by which the sequences are ordered, the result when element is found in first sequence but not in the second, the result when element is found in second sequence but not in the first and the result when elements are found in both sequences.
Namespace: MoreLinqMoreLinq (in MoreLinq.dll) Version: 3.0.0
Syntaxpublic static IEnumerable<TResult> OrderedMerge<T, TKey, TResult>( this IEnumerable<T> first, IEnumerable<T> second, Func<T, TKey> keySelector, Func<T, TResult> firstSelector, Func<T, TResult> secondSelector, Func<T, T, TResult> bothSelector )
<ExtensionAttribute> Public Shared Function OrderedMerge(Of T, TKey, TResult) ( first As IEnumerable(Of T), second As IEnumerable(Of T), keySelector As Func(Of T, TKey), firstSelector As Func(Of T, TResult), secondSelector As Func(Of T, TResult), bothSelector As Func(Of T, T, TResult) ) As IEnumerable(Of TResult)
public: [ExtensionAttribute] generic<typename T, typename TKey, typename TResult> static IEnumerable<TResult>^ OrderedMerge( IEnumerable<T>^ first, IEnumerable<T>^ second, Func<T, TKey>^ keySelector, Func<T, TResult>^ firstSelector, Func<T, TResult>^ secondSelector, Func<T, T, TResult>^ bothSelector )
[<ExtensionAttribute>] static member OrderedMerge : first : IEnumerable<'T> * second : IEnumerable<'T> * keySelector : Func<'T, 'TKey> * firstSelector : Func<'T, 'TResult> * secondSelector : Func<'T, 'TResult> * bothSelector : Func<'T, 'T, 'TResult> -> IEnumerable<'TResult>Parameters
Type:
IEnumerableTResultA sequence with projections from the two input sequences merged according to a key, as in a full outer join.
Usage NoteIn Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableT. 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 method uses deferred execution. The behavior is undefined if the sequences are unordered (by key) as inputs.
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