add convenience extensions for Units

This commit is contained in:
ig 2023-02-23 13:54:13 +01:00
parent 55f70f056d
commit 25cb4dfa12
1 changed files with 9 additions and 0 deletions

View File

@ -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);
}