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.230-beta+03417d7b5cff037b24e882d7adef82d359b34964
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