Gemstone Common Library
Show/Hide TOC

# Range T MergeConsecutiveOverlapping(IEnumerableRange T, IComparer T) Method

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

## Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.159 -- Release Build+a612c25bc0e1c87e5766544ec4650d2ebcfddcf4
C#
View Source Request Example

    public static IEnumerable<Range<T>> MergeConsecutiveOverlapping(
    	IEnumerable<Range<T>> ranges,
    	IComparer<T> comparer
    )

VB
View Source Request Example

    Public Shared Function MergeConsecutiveOverlapping (
    	ranges As IEnumerable(Of Range(Of T)),
    	comparer As IComparer(Of T)
    ) As IEnumerable(Of Range(Of T))

C++
View Source Request Example

    public:
    static IEnumerable<Range<T>^>^ MergeConsecutiveOverlapping(
    	IEnumerable<Range<T>^>^ ranges,
    	IComparer<T>^ comparer
    )

JavaScript
View Source Request Example

    Gemstone.Range.MergeConsecutiveOverlapping = function(ranges, comparer);

#### 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

#### Reference

RangeT Class
MergeConsecutiveOverlapping Overload
Gemstone Namespace