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.143 -- Release Build+524337d392fd5616b12b50022b004322b9e7c330
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