public Unit(T type, Unit unitToConvert)
{
if (!UnitDimensions.HaveSameDimensions(type.Dimensions, unitToConvert.Dimensions))
{
throw new Exception("Units do not have the same Dimensions");
}
this.UnitType = type;
this.Measurement = unitToConvert.MeasurementIn(type);
}