Click or drag to resize

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

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

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.241-beta+912389e96d98840d2a999d490420db618dcbe4c6
Syntax
public static IEnumerable<Range<TRange, TState>> MergeConsecutiveOverlapping(
	IEnumerable<Range<TRange, TState>> ranges,
	IComparer<TRange> comparer
)
View Source

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.
See Also