Click or drag to resize
AlgorithmsMergeSortedT Method (IComparerT, IEnumerableT)
Merge several sorted collections into a single sorted collection. Each input collection must be sorted by the ordering in the passed instance of IComparer<T>. The merging is stable; equal items maintain their ordering, and equal items in different collections are placed in the order of the collections.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public static IEnumerable<T> MergeSorted<T>(
	IComparer<T> comparer,
	params IEnumerable<T>[] collections
)

Parameters

comparer
Type: System.Collections.GenericIComparerT
The comparer instance used to sort the list. Only the Compare method is used.
collections
Type: System.Collections.GenericIEnumerableT
The set of collections to merge. In many languages, this parameter can be specified as several individual parameters.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:X3Platform.Collections.Algorithms.MergeSorted``1(System.Collections.Generic.IComparer{``0},System.Collections.Generic.IEnumerable{``0}[])"]

Return Value

Type: IEnumerableT
An IEnumerable<T> that enumerates all the items in all the collections in sorted order.
See Also