Range<TRange, TState>.MergeAllOverlapping(IEnumerable<Range<TRange, TState>>, IComparer<TRange>) Method

Merges all consecutive groups of overlapping ranges in a collection and returns the resulting collection of ranges.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public static IEnumerable<Range<TRange, TState>> MergeAllOverlapping(
	IEnumerable<Range<TRange, TState>> ranges,
	IComparer<TRange> comparer
)

Parameters

ranges  IEnumerable<Range<TRange, TState>>
The collection of ranges.
comparer  IComparer<TRange>
The comparer used to compare objects of type TRange.

Return Value

IEnumerable<Range<TRange, TState>>
The collection of merged ranges.

Remarks

This method does not preserve the order of the source collection.

See Also