add convenience extensions for Units
This commit is contained in:
parent
55f70f056d
commit
25cb4dfa12
|
@ -0,0 +1,9 @@
|
|||
namespace InnovEnergy.Units;
|
||||
|
||||
public static partial class Units
|
||||
{
|
||||
public static Current A (this Decimal value) => new Current(value);
|
||||
public static Voltage V (this Decimal value) => new Voltage(value);
|
||||
public static Power W (this Decimal value) => new Power(value);
|
||||
public static Resistance Ohm(this Decimal value) => new Resistance(value);
|
||||
}
|
Loading…
Reference in New Issue