Click or drag to resize

Range<TRange, TState> .MergeConsecutiveOverlapping(IEnumerable<Range<TRange, TState> > , Comparison<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.239-beta+5928cebde0dd955df84e791f5ea67acbd192773e
Syntax
public static IEnumerable<Range<TRange, TState>> MergeConsecutiveOverlapping(
	IEnumerable<Range<TRange, TState>> ranges,
	Comparison<TRange> comparison
)
View Source

Parameters

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

Return Value

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