Gemstone Common Library
Show/Hide TOC

# Range T Merge(IEnumerableRange T, Comparison T) Method

Merges all ranges in a collection of ranges.

## Definition

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

    public static Range<T> Merge(
    	IEnumerable<Range<T>> ranges,
    	Comparison<T> comparison
    )

VB
View Source Request Example

    Public Shared Function Merge (
    	ranges As IEnumerable(Of Range(Of T)),
    	comparison As Comparison(Of T)
    ) As Range(Of T)

C++
View Source Request Example

    public:
    static Range<T>^ Merge(
    	IEnumerable<Range<T>^>^ ranges,
    	Comparison<T>^ comparison
    )

JavaScript
View Source Request Example

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

#### Parameters

ranges IEnumerable Range T
  The collection of ranges to be merged.
comparison Comparison T
  The comparison used to compare objects of type T.

#### Return Value

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

## See Also

#### Reference

RangeT Class
Merge Overload
Gemstone Namespace