public Unit(Unit <T> toCopy) { this.UnitType = (T)toCopy.UnitType; this.Measurement = toCopy.Measurement; }
/// <summary> /// Constructor sets error exactly to whatever you set it as. /// </summary> private Unit(T type, double value, double error) { this.UnitType = type; this.Measurement = new Measurement(value, error); }
// private Type Ge #endregion #region Constructors public Unit(T unitType, double value) { this.UnitType = unitType; this.Measurement = new Measurement(value, unitType.DefaultErrorMargin); }