Gemstone Common Library
Show/Hide TOC

# RangeTMergeAllOverlapping(IEnumerableRangeT, IComparerT) 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.156 -- Release Build+59006cef9614396d8b79971beebc1091829bcfe4
C#
View Source Request Example

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

VB
View Source Request Example

    Public Shared Function MergeAllOverlapping (
    	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>^>^ MergeAllOverlapping(
    	IEnumerable<Range<T>^>^ ranges,
    	IComparer<T>^ comparer
    )

JavaScript
View Source Request Example

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

#### Parameters

ranges IEnumerable RangeT
  The collection of ranges.
comparer IComparer T
  The comparer used to compare objects of type T.

#### Return Value

IEnumerable RangeT
The collection of merged ranges.

## Remarks

This method does not preserve the order of the source collection.

## See Also

#### Reference

RangeT Class
MergeAllOverlapping Overload
Gemstone Namespace