Class LengthConverter
- Namespace
- xFunc.Maths.Expressions.Units.Converters
- Assembly
- xFunc.Maths.dll
The length unit converter.
public class LengthConverter : IConverter<LengthValue>, IConverter<object>
- Inheritance
-
LengthConverter
- 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
Returns
- bool
true
if converter can convert usingunit
; otherwise,false
.
Convert(object, string)
Converts value
to specified unit
.
public LengthValue Convert(object value, string unit)
Parameters
Returns
- LengthValue
The converter value.