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.158 -- Release Build+8af53c44e6ad1fac543a652d58b46c9843b74b64
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