Gemstone Common Library
Show/Hide TOC

# RangeTMerge(IEnumerableRangeT, ComparerT) Method

Merges all ranges in a 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 Range<T> Merge(
    	IEnumerable<Range<T>> ranges,
    	Comparer<T> comparer
    )

VB
View Source Request Example

    Public Shared Function Merge (
    	ranges As IEnumerable(Of Range(Of T)),
    	comparer As Comparer(Of T)
    ) As Range(Of T)

C++
View Source Request Example

    public:
    static Range<T>^ Merge(
    	IEnumerable<Range<T>^>^ ranges,
    	Comparer<T>^ comparer
    )

JavaScript
View Source Request Example

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

#### Parameters

ranges IEnumerable RangeT
  The collection of ranges to be merged.
comparer Comparer T
  The comparer used to compare objects of type T.

#### Return Value

RangeT
A range that is the result of merging all ranges in the collection.

## See Also

#### Reference

RangeT Class
Merge Overload
Gemstone Namespace