PrefixUnit Constructor
Definition
PrefixUnit(IUnit, IPrefix)
Initializes a new instance of the PrefixUnit class.
public PrefixUnit(IUnit unit, IPrefix prefix = null)
Parameters
unitIUnitThe unit of measure to shallow copy to this instance.
prefixIPrefixThe prefix to associate with this instance.
PrefixUnit(IBaseUnit, double, IPrefix, Action<UnitFormatOptions>)
Initializes a new instance of the PrefixUnit class.
public PrefixUnit(IBaseUnit baseUnit, double value, IPrefix prefix = null, Action<UnitFormatOptions> setup = null)
Parameters
baseUnitIBaseUnitThe base unit of measurement.
valuedoubleThe value of this unit.
prefixIPrefixThe optional prefix to associate with this unit.
setupAction<UnitFormatOptions>The UnitFormatOptions which may be configured.