C# Class System.Temperature

Helper methods for temperature conversion
显示文件 Open project: porrey/iot Class Usage Examples

Public Methods

Method Description
ConvertToCelsius ( this fahrenheit ) : float

Converts a temperature in Celsius to Fahrenheit.

ConvertToFahrenheit ( this celsius ) : float

Converts a temperature in Fahrenheit to Celsius.

Method Details

ConvertToCelsius() public static method

Converts a temperature in Celsius to Fahrenheit.
public static ConvertToCelsius ( this fahrenheit ) : float
fahrenheit this The temperature in Celsius.
return float

ConvertToFahrenheit() public static method

Converts a temperature in Fahrenheit to Celsius.
public static ConvertToFahrenheit ( this celsius ) : float
celsius this The temperature in Fahrenheit.
return float