예제 #1
0
        protected virtual void init(Int64 value, string unitName)
        {
            Int64 resValue = PhysicalUnitBaseType <T> .ConvertToInt(unitName, value);

            mValue       = resValue;
            mValue       = PhysicalType.CorrectValue(this).mValue;
            mStringValue = PhysicalUnitBaseType <T> .IntToString(mValue);
        }
예제 #2
0
 protected virtual void init(Int64 value)
 {
     mValue       = value;
     mValue       = PhysicalType.CorrectValue(this).mValue;
     mStringValue = PhysicalUnitBaseType <T> .IntToString(mValue);
 }