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.138 -- Release Build+dacff88cce10d287c7434d5aac59c76948c712b1
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