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.150 -- Release Build+64e3b411e1abfbd2d4d8a81e850c3909a0ce8731
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