예제 #1
0
 public Unit(Unit <T> toCopy)
 {
     this.UnitType    = (T)toCopy.UnitType;
     this.Measurement = toCopy.Measurement;
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
        // private Type Ge
        #endregion

        #region Constructors
        public Unit(T unitType, double value)
        {
            this.UnitType    = unitType;
            this.Measurement = new Measurement(value, unitType.DefaultErrorMargin);
        }