Gemstone Common Library
Show/Hide TOC

# RangeTRange, TStateMerge(IEnumerableRangeTRange, TState) Method

Merges all ranges in a collection of ranges.

## Definition

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

    public static Range<TRange, TState> Merge(
    	IEnumerable<Range<TRange, TState>> ranges
    )

VB
View Source Request Example

    Public Shared Function Merge (
    	ranges As IEnumerable(Of Range(Of TRange, TState))
    ) As Range(Of TRange, TState)

C++
View Source Request Example

    public:
    static Range<TRange, TState>^ Merge(
    	IEnumerable<Range<TRange, TState>^>^ ranges
    )

JavaScript
View Source Request Example

    Gemstone.Range.Merge = function(ranges);

#### Parameters

ranges IEnumerable RangeTRange, TState
  The collection of ranges to be merged.

#### Return Value

RangeTRange, TState
A range that is the result of merging all ranges in the collection.

## See Also

#### Reference

RangeTRange, TState Class
Merge Overload
Gemstone Namespace