18 lines
411 B
C#
18 lines
411 B
C#
using InnovEnergy.Lib.Units.Generator;
|
|
|
|
namespace InnovEnergy.Lib.Units;
|
|
|
|
[Equal]
|
|
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;
|
|
}
|
|
} |