コード例 #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);
        }