public MassDetlaKelvin ConvertTo(MassDetlaKelvinUnit newUnit) { // generator : ProductValuesGenerator.Add_ConvertTo if (Unit.Equals(newUnit)) { return(this); } var a = new Mass(Value, Unit.LeftUnit); var b = new DeltaKelvinTemperature(1, Unit.RightUnit); a = a.ConvertTo(newUnit.LeftUnit); b = b.ConvertTo(newUnit.RightUnit); return(new MassDetlaKelvin(a.Value / b.Value, newUnit)); }
public bool Equals(DeltaKelvinTemperature other) { return(Value == other.Value && !(Unit is null) && Unit.Equals(other.Unit)); }
public int CompareTo(DeltaKelvinTemperature other) { return(UnitedValuesUtils.Compare <DeltaKelvinTemperature, KelvinTemperatureUnit>(this, other)); }