Пример #1
0
 public static ElectricPotentialAc MegavoltsAc <T>(this T value) =>
 ElectricPotentialAc.FromMegavoltsAc(Convert.ToDecimal(value));
Пример #2
0
 /// <inheritdoc cref="ElectricPotentialAc.FromMegavoltsAc(UnitsNet.QuantityValue)" />
 public static ElectricPotentialAc?MegavoltsAc(this double?value) => ElectricPotentialAc.FromMegavoltsAc(value);
Пример #3
0
 /// <inheritdoc cref="ElectricPotentialAc.FromMegavoltsAc(UnitsNet.QuantityValue)" />
 public static ElectricPotentialAc?MegavoltsAc(this decimal?value) => ElectricPotentialAc.FromMegavoltsAc(value == null ? (double?)null : Convert.ToDouble(value.Value));
Пример #4
0
 /// <inheritdoc cref="ElectricPotentialAc.FromMegavoltsAc(UnitsNet.QuantityValue)" />
 public static ElectricPotentialAc MegavoltsAc(this long value) => ElectricPotentialAc.FromMegavoltsAc(value);
Пример #5
0
 /// <inheritdoc cref="ElectricPotentialAc.FromMegavoltsAc(UnitsNet.QuantityValue)" />
 public static ElectricPotentialAc MegavoltsAc(this decimal value) => ElectricPotentialAc.FromMegavoltsAc(Convert.ToDouble(value));