コード例 #1
0
 public static Density KilogramPerCubicDecimeters <T>(this T value) =>
 Density.FromKilogramPerCubicDecimeters(Convert.ToDouble(value));
コード例 #2
0
 public void NumberToKilogramPerCubicDecimetersTest() =>
 Assert.Equal(Density.FromKilogramPerCubicDecimeters(2), 2.KilogramPerCubicDecimeters());