Exemple #1
0
 public string ToString(PowerRatioUnit unit, CultureInfo culture, string format, params object[] args)
 {
     return(string.Format(culture, format, UnitFormatter.GetFormatArgs(unit, As(unit), culture, args)));
 }
Exemple #2
0
 public string ToString(PowerRatioUnit unit, CultureInfo culture = null, int significantDigitsAfterRadix = 2)
 {
     return(ToString(unit, culture, UnitFormatter.GetFormat(As(unit), significantDigitsAfterRadix)));
 }
Exemple #3
0
 public string ToString(ElectricResistanceUnit unit, CultureInfo culture, string format, params object[] args)
 {
     return(string.Format(culture, format, UnitFormatter.GetFormatArgs(unit, As(unit), culture, args)));
 }
 public string ToString(LevelUnit unit, [CanBeNull] IFormatProvider provider, int significantDigitsAfterRadix)
 {
     double value = As(unit);
     string format = UnitFormatter.GetFormat(value, significantDigitsAfterRadix);
     return ToString(unit, provider, format);
 }
Exemple #5
0
 public string ToString(RatioUnit unit, [CanBeNull] Culture culture, int significantDigitsAfterRadix)
 {
     double value = As(unit);
     string format = UnitFormatter.GetFormat(value, significantDigitsAfterRadix);
     return ToString(unit, culture, format);
 }
Exemple #6
0
 public string ToString(KinematicViscosityUnit unit, CultureInfo culture, string format, params object[] args)
 {
     return(string.Format(culture, format, UnitFormatter.GetFormatArgs(unit, As(unit), culture, args)));
 }