Click or drag to resize

Temperature Methods

The Temperature type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCelsius Returns a Temperature with the specified Celsius temperature rounded to the nearest 0.1 C.
Public methodStatic memberCelsiusRange Returns a non-null low-to-high-sorted ICollection of temperatures, with Celsius values running from firstValue to lastValue (inclusive), and the specified step between each consecutive temperature.
Public methodCompareTo Compares two Temperature objects for low-to-high ordering.
Public methodEquals(Object) Two Temperature instances can only be equal if they have the same units and temperature value.
(Overrides ValueTypeEquals(Object))
Public methodEquals(Temperature) Two Temperature instances can only be equal if they have the same units and temperature value.
Public methodStatic memberFahrenheit Returns a Temperature with the specified Fahrenheit temperature rounded to the nearest 0.1 F.
Public methodStatic memberFahrenheitRange Returns a non-null low-to-high-sorted ICollection of temperatures, with Fahrenheit values running from firstValue to lastValue (inclusive), and the specified step between each consecutive temperature.
Public methodGetHashCode Overridden to ensure consistency with Equals.
(Overrides ValueTypeGetHashCode)
Public methodToNumericString Returns a non-null, non-empty string representation of the numeric base-temperature value, like "50" or "15.5" or "-5" or "33.1", in a format suitable for insertion into the appropriate unit-specific element(s) of the request XML.
Public methodToString Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides ValueTypeToString)
Top
See Also