Click or drag to resize

Range<TRange, TState> .MergeAllOverlapping(IEnumerable<Range<TRange, TState> > ) 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.246-beta+ff392465a0262ee2737937d4127fc3c2f08c6dcd
Syntax
public static IEnumerable<Range<TRange, TState>> MergeAllOverlapping(
	IEnumerable<Range<TRange, TState>> ranges
)
View Source

Parameters

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

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