/// <summary>Constructor</summary> /// <param name="name">Name</param> /// <param name="symbol">Symbol</param> /// <param name="amount">Amount of reference units (1 for the base unit)</param> /// <param name="reference">Reference Measure Unit (null for the base unit)</param> /// <exception cref="ArgumentException">Amount must be positive</exception> /// <exception cref="TypeInitializationException">Created unit and the reference unit must belong to the same measure equivalence class</exception> /// <exception cref="TypeInitializationException">First unit of the equivalence class must have rate equal to 1</exception> public CapacityUnit(string name, string symbol, decimal amount = 1, CapacityUnit reference = null) : base(name, symbol, amount, reference) { }
static CapacityUnit() { CubicMeter = new CapacityUnit("cubic meter", "m3"); }