Click or drag to resize

Range<T> .MergeConsecutiveOverlapping(IEnumerable<Range<T> > , IComparer<T> ) 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.244-beta+cf93f5f8aea4b941e9b426fe4e180c2bd85d31a2
Syntax
public static IEnumerable<Range<T>> MergeConsecutiveOverlapping(
	IEnumerable<Range<T>> ranges,
	IComparer<T> comparer
)
View Source

Parameters

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

Return Value

IEnumerable<Range<T>>
The collection of merged ranges.
See Also