Gemstone Common Library
Show/Hide TOC

# SpeedCompareTo(Speed) Method

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

## Definition

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

    public int CompareTo(
    	Speed value
    )

VB
View Source Request Example

    Public Function CompareTo (
    	value As Speed
    ) As Integer

C++
View Source Request Example

    public:
    virtual int CompareTo(
    	Speed value
    ) sealed

JavaScript
View Source Request Example

    function CompareTo(value);

#### Parameters

value Speed
  A Speed 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

Speed Structure
CompareTo Overload
Gemstone.Units Namespace