Weather System
Weather System
WeatherSystem
TemperatureExtensions Class
TemperatureExtensions Methods
ToTemperatureValue Method
TemperatureExtensions
ToTemperatureValue Method
Convert a raw temperature value into its enum equivalent
Namespace:
WeatherSystem
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
Copy
public
static
TemperatureVariables
ToTemperatureValue
(
this
float
x
)
Parameters
x
Type:
System
Single
The value to convert
Return Value
Type:
TemperatureVariables
The TemperatureVariables representation of the value
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Single
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
TemperatureExtensions Class
WeatherSystem Namespace
Sam Lord 2018