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.172 -- Release Build+241430fabc9f8d815f226ef82f939af6835b2b48
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