public UnitDimension(UnitSystemUnitDimension unitDimension, CultureInfo culture) { var name = GetName(unitDimension.Name, culture); DomainID = unitDimension.domainID; Name = name != null ? name.Value : null; Units = GetUnitsOfMeasure(unitDimension.Items); CompositeEquivalents = GetCompositeConversionFactors(unitDimension.Items); }
public UnitDimension(UnitSystemUnitDimension unitDimension) : this(unitDimension, CultureInfo.CurrentUICulture) { }
public void Setup() { _unitDimension = new UnitSystemUnitDimension(); }