Gemstone Common Library
Show/Hide TOC

# VolumeCompareTo(Volume) Method

Compares this instance to a specified Volume and returns an indication of their relative values.

## Definition

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

    public int CompareTo(
    	Volume value
    )

VB
View Source Request Example

    Public Function CompareTo (
    	value As Volume
    ) As Integer

C++
View Source Request Example

    public:
    virtual int CompareTo(
    	Volume value
    ) sealed

JavaScript
View Source Request Example

    function CompareTo(value);

#### Parameters

value Volume
  A Volume to compare.

#### Return Value

Int32
A signed number indicating the relative values of this instance and value. Returns less than zero if this instance is less than value, zero if this instance is equal to value, or greater than zero if this instance is greater than value.

#### Implements

IComparableT CompareTo(T)

## See Also

#### Reference

Volume Structure
CompareTo Overload
Gemstone.Units Namespace