2023-02-26 14:39:55 +00:00
|
|
|
using InnovEnergy.Lib.Units.Generator;
|
|
|
|
|
2023-02-26 09:38:28 +00:00
|
|
|
namespace InnovEnergy.Lib.Units;
|
|
|
|
|
2023-02-26 18:19:16 +00:00
|
|
|
[Equal]
|
2023-02-26 14:39:55 +00:00
|
|
|
public readonly partial struct Frequency
|
2023-02-26 09:38:28 +00:00
|
|
|
{
|
|
|
|
public static String Unit => "Hz";
|
|
|
|
public static String Symbol => "f";
|
|
|
|
|
2023-02-26 18:19:16 +00:00
|
|
|
public Frequency(Decimal value)
|
|
|
|
{
|
|
|
|
if (value < 0)
|
|
|
|
throw new ArgumentException(nameof(Frequency) + " cannot be negative", nameof(value));
|
|
|
|
|
|
|
|
Value = value;
|
|
|
|
}
|
2023-02-26 09:38:28 +00:00
|
|
|
}
|