Gemstone Common Library
Show/Hide TOC

# Range TRange, TState Contains(Range TRange, TState, Comparison TRange) Method

Determines whether the range contains the given range.

## Definition

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

    public bool Contains(
    	Range<TRange, TState> range,
    	Comparison<TRange> comparison
    )

VB
View Source Request Example

    Public Function Contains (
    	range As Range(Of TRange, TState),
    	comparison As Comparison(Of TRange)
    ) As Boolean

C++
View Source Request Example

    public:
    bool Contains(
    	Range<TRange, TState>^ range,
    	Comparison<TRange>^ comparison
    )

JavaScript
View Source Request Example

    function Contains(range, comparison);

#### Parameters

range Range TRange, TState
  The range to be compared with.
comparison Comparison TRange
  The comparison used to compare objects of type TRange.

#### Return Value

Boolean
True if the given range exists within this range; false otherwise.

## See Also

#### Reference

RangeTRange, TState Class
Contains Overload
Gemstone Namespace