Click or drag to resize

TemperatureUnit Structure

Defines the units of temperature measurement with constants to represent Celsius and Fahrenheit.
Inheritance Hierarchy
SystemObject
  SystemValueType
    DegreeDays.Api.DataTemperatureUnit

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public struct TemperatureUnit : IEquatable<TemperatureUnit>

The TemperatureUnit type exposes the following members.

Methods
 NameDescription
Public methodEquals(Object) Returns true if obj is a TemperatureUnit that represents the same unit of temperature; false otherwise.
(Overrides ValueTypeEquals(Object))
Public methodEquals(TemperatureUnit) Returns true if other represents the same unit of temperature; false otherwise.
Public methodGetHashCode Overridden to ensure consistency with Equals.
(Overrides ValueTypeGetHashCode)
Public methodStatic memberGetValues Returns an array of the available TemperatureUnit values.
Public methodRange Returns a non-null low-to-high-sorted ICollection of temperatures, with values running from firstValue to lastValue (inclusive), and the specified step between each consecutive temperature.
Public methodToString Returns a non-null, non-empty string representation of this item in the format required to specify a TemperatureUnit in the request XML ("Celsius" or "Fahrenheit").
(Overrides ValueTypeToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(TemperatureUnit, TemperatureUnit) Determines whether two specified TemperatureUnit instances are equal.
Public operatorStatic memberInequality(TemperatureUnit, TemperatureUnit) Determines whether two specified TemperatureUnit instances are not equal.
Top
Fields
 NameDescription
Public fieldStatic memberCelsius For the Celsius temperature scale.
Public fieldStatic memberFahrenheit For the Fahrenheit temperature scale.
Top
Thread Safety
Instances of this struct are immutable and safe for use from multiple threads at once. The only values that can exist are those declared here as static readonly fields.
See Also