A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://morelinq.github.io/3.0/ref/api/html/M_MoreLinq_MoreEnumerable_OrderedMerge__2.htm below:

MoreEnumerableOrderedMergeT, TKey Method (IEnumerableT, IEnumerableT, FuncT, TKey)

MoreEnumerableOrderedMergeT, TKey Method (IEnumerableT, IEnumerableT, FuncT, TKey)

Merges two ordered sequences into one with an additional parameter specifying the element key by which the sequences are ordered. Where the keys equal in both sequences, the element from the first sequence is returned in the resulting sequence.

Namespace:  MoreLinq
Assembly:

MoreLinq (in MoreLinq.dll) Version: 3.0.0

Syntax
public static IEnumerable<T> OrderedMerge<T, TKey>(
	this IEnumerable<T> first,
	IEnumerable<T> second,
	Func<T, TKey> keySelector
)
<ExtensionAttribute>
Public Shared Function OrderedMerge(Of T, TKey) ( 
	first As IEnumerable(Of T),
	second As IEnumerable(Of T),
	keySelector As Func(Of T, TKey)
) As IEnumerable(Of T)
public:
[ExtensionAttribute]
generic<typename T, typename TKey>
static IEnumerable<T>^ OrderedMerge(
	IEnumerable<T>^ first, 
	IEnumerable<T>^ second, 
	Func<T, TKey>^ keySelector
)
[<ExtensionAttribute>]
static member OrderedMerge : 
        first : IEnumerable<'T> * 
        second : IEnumerable<'T> * 
        keySelector : Func<'T, 'TKey> -> IEnumerable<'T> 
Parameters
first
Type: System.Collections.GenericIEnumerableT
The first input sequence.
second
Type: System.Collections.GenericIEnumerableT
The second input sequence.
keySelector
Type: SystemFuncT, TKey
Function to extract a key given an element.
Type Parameters
T
Type of elements in input and output sequences.
TKey
Type of keys used for merging.
Return Value

Type:

IEnumerableT

A sequence with elements from the two input sequences merged according to a key, as in a full outer join.

Usage Note

In 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)

.

Remarks

This method uses deferred execution. The behavior is undefined if the sequences are unordered (by key) as inputs.

See Also

RetroSearch 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