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.155 -- Release Build+a7d8ba87ff92af3282fc68a6fbfd37a854100b44
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

IComparableTCompareTo(T)

## See Also

#### Reference

Volume Structure
CompareTo Overload
Gemstone.Units Namespace