11 lines
256 B
C#
11 lines
256 B
C#
|
namespace InnovEnergy.Lib.Units;
|
||
|
|
||
|
public abstract class Unit
|
||
|
{
|
||
|
protected Unit(Double value) => Value = value;
|
||
|
|
||
|
public abstract String Symbol { get; }
|
||
|
public Double Value { get; }
|
||
|
|
||
|
public override String ToString() => $"{Value} {Symbol}";
|
||
|
}
|