Ejemplo n.º 1
0
 private AngularSpeedJsonConverter(AngularSpeedUnit unit)
 {
     this.unit = unit;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Gu.Units.Wpf.AngularSpeedConverter"/> class.
 /// </summary>
 /// <param name="unit"><see cref="Gu.Units.AngularSpeedUnit"/>.</param>
 public AngularSpeedConverter(AngularSpeedUnit unit)
 {
     this.Unit = unit;
 }
 protected static string CreateSuffix(SymbolFormat format, AngularSpeedUnit unit)
 {
     return default(AngularSpeed).ToString(unit, format).Trim('0');
 }