Class TemperatureExtensions
Provides extension methods for creating Meadow.Units.Temperature instances.
Assembly: Meadow.Units.dll
View Source
Declaration
public static class TemperatureExtensions
Methods
Fahrenheit(double)
Creates a Temperature instance with the specified value in Fahrenheit.
View Source
Declaration
public static Temperature Fahrenheit(this double v)
Returns
Meadow.Units.Temperature: A new Temperature instance with the specified value.
Parameters
| Type | Name | Description | 
|---|---|---|
System.Double | v | The value of temperature in Fahrenheit as a double. | 
Celsius(double)
Creates a Temperature instance with the specified value in Celsius.
View Source
Declaration
public static Temperature Celsius(this double v)
Returns
Meadow.Units.Temperature: A new Temperature instance with the specified value.
Parameters
| Type | Name | Description | 
|---|---|---|
System.Double | v | The value of temperature in Celsius as a double. | 
Fahrenheit(int)
Creates a Temperature instance with the specified value in Fahrenheit.
View Source
Declaration
public static Temperature Fahrenheit(this int v)
Returns
Meadow.Units.Temperature: A new Temperature instance with the specified value.
Parameters
| Type | Name | Description | 
|---|---|---|
System.Int32 | v | The value of temperature in Fahrenheit as an integer. | 
Celsius(int)
Creates a Temperature instance with the specified value in Celsius.
View Source
Declaration
public static Temperature Celsius(this int v)
Returns
Meadow.Units.Temperature: A new Temperature instance with the specified value.
Parameters
| Type | Name | Description | 
|---|---|---|
System.Int32 | v | The value of temperature in Celsius as an integer. |