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); }
protected virtual void init(Int64 value) { mValue = value; mValue = PhysicalType.CorrectValue(this).mValue; mStringValue = PhysicalUnitBaseType <T> .IntToString(mValue); }