/// <inheritdoc cref="Density.FromKilopoundsPerCubicInch(double?)"/>
 public static Density?KilopoundsPerCubicInch(this long?value) => Density.FromKilopoundsPerCubicInch(value);
 /// <inheritdoc cref="Density.FromKilopoundsPerCubicInch(double)"/>
 public static Density KilopoundsPerCubicInch(this int value) => Density.FromKilopoundsPerCubicInch(value);
 public static Density?KilopoundsPerCubicInch <T>(this T?value) where T : struct => Density.FromKilopoundsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value));
Ejemplo n.º 4
0
 public void NumberToKilopoundsPerCubicInchTest() =>
 Assert.Equal(Density.FromKilopoundsPerCubicInch(2), 2.KilopoundsPerCubicInch());
 /// <inheritdoc cref="Density.FromKilopoundsPerCubicInch(UnitsNet.QuantityValue)" />
 public static Density KilopoundsPerCubicInch <T>(this T value) => Density.FromKilopoundsPerCubicInch(Convert.ToDouble(value));