/// <summary>Constructor</summary> /// <param name="amount">Amount of Logistic Units</param> /// <param name="unit">Logistic Unit of a Logistic Item</param> /// <param name="rounding">Rounding option</param> /// <param name="decimals">Amount precision</param> public LogisticItem(decimal amount, LogisticUnit unit, Rounding rounding = Rounding.None, int decimals = 0) : base(amount, unit, rounding, decimals) { }
/// <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 LogisticUnit(string name, string symbol, decimal amount = 1, LogisticUnit reference = null) : base(name, symbol, amount, reference) { }