VeriStand .NET API Reference

DoubleValue.CompareTo Method (ScalarDataValue)

Compares this instance to a specified object and returns an integer that indicates their relationship to each other.

Namespace: NationalInstruments.VeriStand.Data
Assembly: NationalInstruments.VeriStand.DataTypes (in NationalInstruments.VeriStand.DataTypes.dll) Version: 2013.0.0.0 (2013.0.0.0)
Visual Basic (Declaration)
Public Overrides Function CompareTo ( _
	other As ScalarDataValue _
) As Integer
C#
public override int CompareTo(
	ScalarDataValue other
)
Visual C++
public:
virtual int CompareTo(
	ScalarDataValue^ other
) override

Parameters

other
Type: NationalInstruments.VeriStand.Data.ScalarDataValue
The object to compare to this instance.

Return Value

An integer that represents the relationship of this instance and other.
ConditionReturn Value
Less than zero This instance is less than other, or this instance is not a number (NaN) and other is a number.
Zero This instance and other are equal, or both this instance and other are NaN, positive infinity, or negative infinity.
Greater than zero This instance is greater than other, or this instance is a number and other is NaN.

Implements

IComparable(T).CompareTo(T)

See Also