AlgorithmsMergeSortedT Method (IEnumerableT) |
Merge several sorted collections into a single sorted collection. Each input collection must be sorted
by the natural ordering of the type (it's implementation of IComparable<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.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static IEnumerable<T> MergeSorted<T>(
params IEnumerable<T>[] collections
)
where T : Object, IComparable<T>
public:
generic<typename T>
where T : Object, IComparable<T>
static IEnumerable<T>^ MergeSorted(
... array<IEnumerable<T>^>^ collections
)
Parameters
- 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.IEnumerable{``0}[])"]
Return Value
Type:
IEnumerableTAn IEnumerable<T> that enumerates all the items in all the collections
in sorted order.
See Also