public static string GetAbbreviation(ElectricChargeDensityUnit unit, [CanBeNull] IFormatProvider provider)
        {
            provider = provider ?? UnitSystem.DefaultCulture;

            return(UnitSystem.GetCached(provider).GetDefaultAbbreviation(unit));
        }
 /// <inheritdoc />
 IQuantity IQuantity.ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #3
0
 public static string GetAbbreviation(ElectricResistanceUnit unit, CultureInfo culture = null)
 {
     return(UnitSystem.GetCached(culture).GetDefaultAbbreviation(unit));
 }
Exemple #4
0
 public static string GetAbbreviation(MassFlowUnit unit, [CanBeNull] Culture culture)
 {
     return(UnitSystem.GetCached(culture).GetDefaultAbbreviation(unit));
 }
Exemple #5
0
 IQuantity <ApparentPowerUnit> IQuantity <ApparentPowerUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #6
0
 IQuantity <IrradiationUnit> IQuantity <IrradiationUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
 /// <inheritdoc />
 IQuantity <ElectricPotentialDcUnit> IQuantity <ElectricPotentialDcUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #8
0
        public static string GetAbbreviation(PowerRatioUnit unit, [CanBeNull] IFormatProvider provider)
        {
            provider = provider ?? UnitSystem.DefaultCulture;

            return(UnitSystem.GetCached(provider).GetDefaultAbbreviation(unit));
        }
Exemple #9
0
 public static string GetAbbreviation(ElectricConductivityUnit unit, [CanBeNull] Culture culture)
 {
     return(UnitSystem.GetCached(culture).GetDefaultAbbreviation(unit));
 }
Exemple #10
0
 IQuantity <MagneticFluxUnit> IQuantity <MagneticFluxUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #11
0
 /// <inheritdoc />
 IQuantity <ElectricResistanceUnit> IQuantity <ElectricResistanceUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #12
0
 /// <inheritdoc />
 IQuantity <ForcePerLengthUnit> IQuantity <ForcePerLengthUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #13
0
 IQuantity <ApparentEnergyUnit> IQuantity <ApparentEnergyUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #14
0
 /// <inheritdoc />
 IQuantity <SpecificEnergyUnit> IQuantity <SpecificEnergyUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #15
0
 /// <inheritdoc />
 IQuantity <LapseRateUnit> IQuantity <LapseRateUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #16
0
 IQuantity <VolumePerLengthUnit> IQuantity <VolumePerLengthUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #17
0
 /// <inheritdoc />
 IQuantity <AmountOfSubstanceUnit> IQuantity <AmountOfSubstanceUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #18
0
 IQuantity <LevelUnit> IQuantity <LevelUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #19
0
 IQuantity <PermeabilityUnit> IQuantity <PermeabilityUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #20
0
 /// <inheritdoc />
 IQuantity <MassFluxUnit> IQuantity <MassFluxUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #21
0
 /// <inheritdoc />
 IQuantity <ElectricChargeDensityUnit> IQuantity <ElectricChargeDensityUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #22
0
 public static string GetAbbreviation(DensityUnit unit, CultureInfo culture = null)
 {
     return(UnitSystem.GetCached(culture).GetDefaultAbbreviation(unit));
 }
 IQuantity <ForceChangeRateUnit> IQuantity <ForceChangeRateUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #24
0
 IQuantity <LuminousFluxUnit> IQuantity <LuminousFluxUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #25
0
 IQuantity <ElectricConductivityUnit> IQuantity <ElectricConductivityUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
 IQuantity <RelativeHumidityUnit> IQuantity <RelativeHumidityUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #27
0
 IQuantity <TemperatureDeltaUnit> IQuantity <TemperatureDeltaUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
 IQuantity <ReactiveEnergyUnit> IQuantity <ReactiveEnergyUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #29
0
 IQuantity <ElectricCurrentDensityUnit> IQuantity <ElectricCurrentDensityUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);
Exemple #30
0
        /// <summary>
        ///     Create a unit system for parsing and presenting numbers, units and abbreviations.
        ///     If null is passed then <see cref="CultureInfo.CurrentUICulture" /> will be used.
        /// </summary>
        /// <param name="cultureInfo"></param>
        /// <returns></returns>
        public static UnitSystem Create(CultureInfo cultureInfo)
        {
            if (cultureInfo == null)
                cultureInfo = CultureInfo.CurrentUICulture;

            if (!CultureToInstance.ContainsKey(cultureInfo))
                CultureToInstance[cultureInfo] = new UnitSystem(cultureInfo);

            return CultureToInstance[cultureInfo];
        }
Exemple #31
0
 IQuantity <SpecificVolumeUnit> IQuantity <SpecificVolumeUnit> .ToUnit(UnitSystem unitSystem) => ToUnit(unitSystem);