示例#1
0
 /// <inheritdoc cref="ForcePerLength.FromKilogramsForcePerMeter(double)"/>
 public static ForcePerLength KilogramsForcePerMeter(this float value) => ForcePerLength.FromKilogramsForcePerMeter(value);
示例#2
0
 /// <inheritdoc cref="ForcePerLength.FromKilogramsForcePerMeter(double?)"/>
 public static ForcePerLength?KilogramsForcePerMeter(this double?value) => ForcePerLength.FromKilogramsForcePerMeter(value);
 public void NumberToKilogramsForcePerMeterTest() =>
 Assert.Equal(ForcePerLength.FromKilogramsForcePerMeter(2), 2.KilogramsForcePerMeter());
 /// <inheritdoc cref="ForcePerLength.FromKilogramsForcePerMeter(double?)"/>
 public static ForcePerLength?KilogramsForcePerMeter(this decimal?value) => ForcePerLength.FromKilogramsForcePerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value));
 /// <inheritdoc cref="ForcePerLength.FromKilogramsForcePerMeter(double)"/>
 public static ForcePerLength KilogramsForcePerMeter(this decimal value) => ForcePerLength.FromKilogramsForcePerMeter(Convert.ToDouble(value));
 public static ForcePerLength?KilogramsForcePerMeter <T>(this T?value) where T : struct => ForcePerLength.FromKilogramsForcePerMeter(value == null ? (double?)null : Convert.ToDouble(value.Value));