OrderedMergeExtensionOrderedMergeT(IEnumerableT, IEnumerableT) Method
Merges two ordered sequences into one. Where the elements equal
in both sequences, the element from the first sequence is
returned in the resulting sequence.
Namespace: MoreLinq.ExtensionsAssembly: MoreLinq (in MoreLinq.dll) Version: 4.1.0+0e154ef592f33ce0f6f3d534a9eedee273f0ce72
public static IEnumerable<T> OrderedMerge<T>(
this IEnumerable<T> first,
IEnumerable<T> second
)
<ExtensionAttribute>
Public Shared Function OrderedMerge(Of T) (
first As IEnumerable(Of T),
second As IEnumerable(Of T)
) As IEnumerable(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static IEnumerable<T>^ OrderedMerge(
IEnumerable<T>^ first,
IEnumerable<T>^ second
)
[<ExtensionAttribute>]
static member OrderedMerge :
first : IEnumerable<'T> *
second : IEnumerable<'T> -> IEnumerable<'T>
- first IEnumerableT
- The first input sequence.
- second IEnumerableT
- The second input sequence.
- T
- Type of elements in input and output sequences.
IEnumerableT
A sequence with elements from the two input sequences merged, as
in a full outer join.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).
This method uses deferred execution. The behavior is undefined
if the sequences are unordered as inputs.