Temperature Methods |
The Temperature type exposes the following members.
Name | Description | |
---|---|---|
Celsius | Returns a Temperature with the specified Celsius temperature rounded to the nearest 0.1 C. | |
CelsiusRange | 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. | |
CompareTo | Compares two Temperature objects for low-to-high ordering. | |
Equals(Object) |
Two Temperature instances can only be equal if they have the
same units and temperature value.
(Overrides ValueTypeEquals(Object)) | |
Equals(Temperature) | Two Temperature instances can only be equal if they have the same units and temperature value. | |
Fahrenheit | Returns a Temperature with the specified Fahrenheit temperature rounded to the nearest 0.1 F. | |
FahrenheitRange | 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. | |
GetHashCode |
Overridden to ensure consistency with Equals.
(Overrides ValueTypeGetHashCode) | |
ToNumericString | 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. | |
ToString |
Returns a non-null, non-empty string representation of this instance for logging and debugging purposes.
(Overrides ValueTypeToString) |