Click or drag to resize
AlgorithmsMergeSortedT Method (ComparisonT, IEnumerableT)
Merge several sorted collections into a single sorted collection. Each input collection must be sorted by the ordering in the passed Comparison<T> delegate. 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>(
	Comparison<T> comparison,
	params IEnumerable<T>[] collections
)

Parameters

comparison
Type: SystemComparisonT
The comparison delegate used to sort the collections.
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.Comparison{``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