コード例 #1
0
 /// <inheritdoc cref="Density.FromKilopoundsPerCubicInch(double?)"/>
 public static Density?KilopoundsPerCubicInch(this long?value) => Density.FromKilopoundsPerCubicInch(value);
コード例 #2
0
 /// <inheritdoc cref="Density.FromKilopoundsPerCubicInch(double)"/>
 public static Density KilopoundsPerCubicInch(this int value) => Density.FromKilopoundsPerCubicInch(value);
コード例 #3
0
 public static Density?KilopoundsPerCubicInch <T>(this T?value) where T : struct => Density.FromKilopoundsPerCubicInch(value == null ? (double?)null : Convert.ToDouble(value.Value));
コード例 #4
0
 public void NumberToKilopoundsPerCubicInchTest() =>
 Assert.Equal(Density.FromKilopoundsPerCubicInch(2), 2.KilopoundsPerCubicInch());
コード例 #5
0
 /// <inheritdoc cref="Density.FromKilopoundsPerCubicInch(UnitsNet.QuantityValue)" />
 public static Density KilopoundsPerCubicInch <T>(this T value) => Density.FromKilopoundsPerCubicInch(Convert.ToDouble(value));