MoreEnumerableSortedMergeTSource(IEnumerableTSource, OrderByDirection, IComparerTSource, IEnumerableTSource) Method
Merges two or more sequences that are in a common order (either ascending or descending)
into a single sequence that preserves that order.
Namespace: MoreLinqAssembly: MoreLinq (in MoreLinq.dll) Version: 4.0.0+092a40d82a1b280568ffa006d9a210bdec0792cd
public static IEnumerable<TSource> SortedMerge<TSource>(
this IEnumerable<TSource> source,
OrderByDirection direction,
IComparer<TSource>? comparer,
params IEnumerable<TSource>[] otherSequences
)
<ExtensionAttribute>
Public Shared Function SortedMerge(Of TSource) (
source As IEnumerable(Of TSource),
direction As OrderByDirection,
comparer As IComparer(Of TSource),
ParamArray otherSequences As IEnumerable(Of TSource)()
) As IEnumerable(Of TSource)
public:
[ExtensionAttribute]
generic<typename TSource>
static IEnumerable<TSource>^ SortedMerge(
IEnumerable<TSource>^ source,
OrderByDirection direction,
IComparer<TSource>^ comparer,
... array<IEnumerable<TSource>^>^ otherSequences
)
[<ExtensionAttribute>]
static member SortedMerge :
source : IEnumerable<'TSource> *
direction : OrderByDirection *
comparer : IComparer<'TSource> *
otherSequences : IEnumerable<'TSource>[] -> IEnumerable<'TSource>
- source IEnumerableTSource
- The primary sequence with which to merge.
- direction OrderByDirection
- The ordering that all sequences must already exhibit.
- comparer IComparerTSource
- The comparer used to evaluate the relative order between
elements.
- otherSequences IEnumerableTSource
- A variable argument array of zero or more other sequences
to merge with.
- TSource
- The type of the elements in the sequence.
IEnumerableTSource
A merged, order-preserving sequence containing al of the elements of the original
sequences.In 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).