TemperatureEquals(Temperature) Method |
Two Temperature instances can only be equal if they have the
same units and temperature value.
Namespace: DegreeDays.Api.DataAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public bool Equals(
Temperature other
)
Public Function Equals (
other As Temperature
) As Boolean
Parameters
- other Temperature
- The instance to compare with this instance.
Return Value
Booleantrue if
other is equal to this instance;
false otherwise.
Implements
IEquatableTEquals(T)Remarks
Value comparisons are made after any rounding done by the
constructor. See these remarks for more
on rounding.
A Celsius temperature and a Fahrenheit temperature can never be equal: this
method does not do any conversion between units.
See Also