コード例 #1
0
 private StiffnessJsonConverter(StiffnessUnit unit)
 {
     this.unit = unit;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of <see cref="Gu.Units.Wpf.StiffnessConverter"/>.
 /// </summary>
 /// <param name="unit"><see cref="Gu.Units.StiffnessUnit"/>.</param>
 public StiffnessConverter(StiffnessUnit unit)
 {
     Unit = unit;
 }
コード例 #3
0
 protected static string CreateSuffix(SymbolFormat format, StiffnessUnit unit)
 {
     return default(Stiffness).ToString(unit, format).Trim('0');
 }