Table of Contents

Class TemperatureConverter

Namespace
xFunc.Maths.Expressions.Units.Converters
Assembly
xFunc.Maths.dll

The temperature unit converter.

public class TemperatureConverter : IConverter<TemperatureValue>, IConverter<object>
Inheritance
TemperatureConverter
Implements
Inherited Members

Methods

CanConvertTo(object, string)

Determines whether the current converter can convert to specified unit.

public bool CanConvertTo(object value, string unit)

Parameters

value object

The value to convert.

unit string

The unit to convert to.

Returns

bool

true if converter can convert using unit; otherwise, false.

Convert(object, string)

Converts value to specified unit.

public TemperatureValue Convert(object value, string unit)

Parameters

value object

The value to convert.

unit string

The unit to convert to.

Returns

TemperatureValue

The converter value.