/// <inheritdoc cref="ForcePerLength.FromKilogramsForcePerMeter(double)"/> public static ForcePerLength KilogramsForcePerMeter(this float value) => ForcePerLength.FromKilogramsForcePerMeter(value);
/// <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));