Class Unit
Last update: 03.07.2024Namespace: VM
Assembly: VM.dll
This class is to represent the convert factor.
public sealed class Unit.ConvertFactor
Inheritance
Constructors
ConvertFactor(Unit, Unit)
Initializes a new instance of the
public ConvertFactor(Unit unitFrom, Unit unitTo)
Parameters
unitFrom
Unit
The unit from.
unitTo
Unit
The unit to.
ConvertFactor(Unit, ConvertFactor)
Initializes a new instance of the
public ConvertFactor(Unit unitFrom, Unit.ConvertFactor factor)
Parameters
unitFrom
Unit
The unit from.
factor
Unit.ConvertFactor
The factor.
Properties
Default
Gets the default convert factor
public static Unit.ConvertFactor Default { get; }
Property Value
FromUCF
Gets the from UCF.
public double FromUCF { get; }
Property Value
ToUCF
Gets the to UCF.
public double ToUCF { get; }
Property Value
this[string]
Gets the convert factor by using indexer
public double this[string stringDimension] { get; }
Property Value
Methods
CalculateShiftingUnit(string, double)
Calculate Shifting Unit.
public double CalculateShiftingUnit(string stringType, double value)
Parameters
stringType
string
The unit type
value
double
The value
Returns
The converted value
Dispose()
public void Dispose()