19 lines
415 B
C#
19 lines
415 B
C#
using InnovEnergy.Lib.Units.Generator;
|
|
|
|
namespace InnovEnergy.Lib.Units;
|
|
|
|
|
|
[Generate]
|
|
public readonly partial struct Frequency
|
|
{
|
|
public static String Unit => "Hz";
|
|
public static String Symbol => "f";
|
|
|
|
public Frequency(Decimal value)
|
|
{
|
|
if (value < 0)
|
|
throw new ArgumentException(nameof(Frequency) + " cannot be negative", nameof(value));
|
|
|
|
Value = value;
|
|
}
|
|
} |