コード例 #1
0
 /// <inheritdoc cref="Torque.FromNewtonCentimeters(double?)"/>
 public static Torque?NewtonCentimeters(this long?value) => Torque.FromNewtonCentimeters(value);
コード例 #2
0
 /// <inheritdoc cref="Torque.FromNewtonCentimeters(double)"/>
 public static Torque NewtonCentimeters(this int value) => Torque.FromNewtonCentimeters(value);
コード例 #3
0
 /// <inheritdoc cref="Torque.FromNewtonCentimeters(double?)"/>
 public static Torque?NewtonCentimeters(this decimal?value) => Torque.FromNewtonCentimeters(value == null ? (double?)null : Convert.ToDouble(value.Value));
コード例 #4
0
 /// <inheritdoc cref="Torque.FromNewtonCentimeters(double)"/>
 public static Torque NewtonCentimeters(this decimal value) => Torque.FromNewtonCentimeters(Convert.ToDouble(value));
コード例 #5
0
 public void NumberToNewtonCentimetersTest() =>
 Assert.Equal(Torque.FromNewtonCentimeters(2), 2.NewtonCentimeters());
コード例 #6
0
 public static Torque NewtonCentimeters <T>(this T value) =>
 Torque.FromNewtonCentimeters(Convert.ToDecimal(value));