Skip to content

Commit 29cbadf

Browse files
tmilnthorpangularsen
authored andcommitted
Making Obsolete attribute message consistent across scripts (#544)
1 parent 28f0989 commit 29cbadf

File tree

177 files changed

+264
-264
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+264
-264
lines changed

Common/GeneratedCode/Quantities/Acceleration.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ int CompareTo(Acceleration other)
469469
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
470470
}
471471

472-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
472+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(Acceleration, double, ComparisonType) to provide the max allowed absolute or relative error.")]
473473
public override bool Equals(object obj)
474474
{
475475
if(obj is null || !(obj is Acceleration))

Common/GeneratedCode/Quantities/AmountOfSubstance.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ int CompareTo(AmountOfSubstance other)
488488
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
489489
}
490490

491-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
491+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(AmountOfSubstance, double, ComparisonType) to provide the max allowed absolute or relative error.")]
492492
public override bool Equals(object obj)
493493
{
494494
if(obj is null || !(obj is AmountOfSubstance))

Common/GeneratedCode/Quantities/AmplitudeRatio.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ int CompareTo(AmplitudeRatio other)
297297
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
298298
}
299299

300-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
300+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(AmplitudeRatio, double, ComparisonType) to provide the max allowed absolute or relative error.")]
301301
public override bool Equals(object obj)
302302
{
303303
if(obj is null || !(obj is AmplitudeRatio))

Common/GeneratedCode/Quantities/Angle.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ int CompareTo(Angle other)
487487
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
488488
}
489489

490-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
490+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(Angle, double, ComparisonType) to provide the max allowed absolute or relative error.")]
491491
public override bool Equals(object obj)
492492
{
493493
if(obj is null || !(obj is Angle))

Common/GeneratedCode/Quantities/ApparentEnergy.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ int CompareTo(ApparentEnergy other)
279279
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
280280
}
281281

282-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
282+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(ApparentEnergy, double, ComparisonType) to provide the max allowed absolute or relative error.")]
283283
public override bool Equals(object obj)
284284
{
285285
if(obj is null || !(obj is ApparentEnergy))

Common/GeneratedCode/Quantities/ApparentPower.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ int CompareTo(ApparentPower other)
298298
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
299299
}
300300

301-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
301+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(ApparentPower, double, ComparisonType) to provide the max allowed absolute or relative error.")]
302302
public override bool Equals(object obj)
303303
{
304304
if(obj is null || !(obj is ApparentPower))

Common/GeneratedCode/Quantities/Area.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ int CompareTo(Area other)
469469
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
470470
}
471471

472-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
472+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(Area, double, ComparisonType) to provide the max allowed absolute or relative error.")]
473473
public override bool Equals(object obj)
474474
{
475475
if(obj is null || !(obj is Area))

Common/GeneratedCode/Quantities/AreaDensity.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ int CompareTo(AreaDensity other)
241241
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
242242
}
243243

244-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
244+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(AreaDensity, double, ComparisonType) to provide the max allowed absolute or relative error.")]
245245
public override bool Equals(object obj)
246246
{
247247
if(obj is null || !(obj is AreaDensity))

Common/GeneratedCode/Quantities/AreaMomentOfInertia.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ int CompareTo(AreaMomentOfInertia other)
336336
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
337337
}
338338

339-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
339+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(AreaMomentOfInertia, double, ComparisonType) to provide the max allowed absolute or relative error.")]
340340
public override bool Equals(object obj)
341341
{
342342
if(obj is null || !(obj is AreaMomentOfInertia))

Common/GeneratedCode/Quantities/BrakeSpecificFuelConsumption.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ int CompareTo(BrakeSpecificFuelConsumption other)
279279
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
280280
}
281281

282-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
282+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(BrakeSpecificFuelConsumption, double, ComparisonType) to provide the max allowed absolute or relative error.")]
283283
public override bool Equals(object obj)
284284
{
285285
if(obj is null || !(obj is BrakeSpecificFuelConsumption))

Common/GeneratedCode/Quantities/Capacitance.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ int CompareTo(Capacitance other)
241241
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
242242
}
243243

244-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
244+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(Capacitance, double, ComparisonType) to provide the max allowed absolute or relative error.")]
245245
public override bool Equals(object obj)
246246
{
247247
if(obj is null || !(obj is Capacitance))

Common/GeneratedCode/Quantities/Density.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ int CompareTo(Density other)
944944
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
945945
}
946946

947-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
947+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(Density, double, ComparisonType) to provide the max allowed absolute or relative error.")]
948948
public override bool Equals(object obj)
949949
{
950950
if(obj is null || !(obj is Density))

Common/GeneratedCode/Quantities/Duration.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ int CompareTo(Duration other)
454454
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
455455
}
456456

457-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
457+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(Duration, double, ComparisonType) to provide the max allowed absolute or relative error.")]
458458
public override bool Equals(object obj)
459459
{
460460
if(obj is null || !(obj is Duration))

Common/GeneratedCode/Quantities/DynamicViscosity.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ int CompareTo(DynamicViscosity other)
336336
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
337337
}
338338

339-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
339+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(DynamicViscosity, double, ComparisonType) to provide the max allowed absolute or relative error.")]
340340
public override bool Equals(object obj)
341341
{
342342
if(obj is null || !(obj is DynamicViscosity))

Common/GeneratedCode/Quantities/ElectricAdmittance.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ int CompareTo(ElectricAdmittance other)
298298
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
299299
}
300300

301-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
301+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(ElectricAdmittance, double, ComparisonType) to provide the max allowed absolute or relative error.")]
302302
public override bool Equals(object obj)
303303
{
304304
if(obj is null || !(obj is ElectricAdmittance))

Common/GeneratedCode/Quantities/ElectricCharge.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ int CompareTo(ElectricCharge other)
241241
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
242242
}
243243

244-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
244+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(ElectricCharge, double, ComparisonType) to provide the max allowed absolute or relative error.")]
245245
public override bool Equals(object obj)
246246
{
247247
if(obj is null || !(obj is ElectricCharge))

Common/GeneratedCode/Quantities/ElectricChargeDensity.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ int CompareTo(ElectricChargeDensity other)
241241
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
242242
}
243243

244-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
244+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(ElectricChargeDensity, double, ComparisonType) to provide the max allowed absolute or relative error.")]
245245
public override bool Equals(object obj)
246246
{
247247
if(obj is null || !(obj is ElectricChargeDensity))

Common/GeneratedCode/Quantities/ElectricConductance.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ int CompareTo(ElectricConductance other)
279279
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
280280
}
281281

282-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
282+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(ElectricConductance, double, ComparisonType) to provide the max allowed absolute or relative error.")]
283283
public override bool Equals(object obj)
284284
{
285285
if(obj is null || !(obj is ElectricConductance))

Common/GeneratedCode/Quantities/ElectricConductivity.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ int CompareTo(ElectricConductivity other)
241241
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
242242
}
243243

244-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
244+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(ElectricConductivity, double, ComparisonType) to provide the max allowed absolute or relative error.")]
245245
public override bool Equals(object obj)
246246
{
247247
if(obj is null || !(obj is ElectricConductivity))

Common/GeneratedCode/Quantities/ElectricCurrent.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ int CompareTo(ElectricCurrent other)
374374
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
375375
}
376376

377-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
377+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(ElectricCurrent, double, ComparisonType) to provide the max allowed absolute or relative error.")]
378378
public override bool Equals(object obj)
379379
{
380380
if(obj is null || !(obj is ElectricCurrent))

Common/GeneratedCode/Quantities/ElectricCurrentDensity.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ int CompareTo(ElectricCurrentDensity other)
241241
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
242242
}
243243

244-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
244+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(ElectricCurrentDensity, double, ComparisonType) to provide the max allowed absolute or relative error.")]
245245
public override bool Equals(object obj)
246246
{
247247
if(obj is null || !(obj is ElectricCurrentDensity))

Common/GeneratedCode/Quantities/ElectricCurrentGradient.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ int CompareTo(ElectricCurrentGradient other)
241241
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
242242
}
243243

244-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
244+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(ElectricCurrentGradient, double, ComparisonType) to provide the max allowed absolute or relative error.")]
245245
public override bool Equals(object obj)
246246
{
247247
if(obj is null || !(obj is ElectricCurrentGradient))

Common/GeneratedCode/Quantities/ElectricField.Common.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ int CompareTo(ElectricField other)
241241
return _value.CompareTo(other.AsBaseNumericType(this.Unit));
242242
}
243243

244-
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals($quantityName, double, ComparisonType) to provide the max allowed absolute or relative error.")]
244+
[Obsolete("It is not safe to compare equality due to using System.Double as the internal representation. It is very easy to get slightly different values due to floating point operations. Instead use Equals(ElectricField, double, ComparisonType) to provide the max allowed absolute or relative error.")]
245245
public override bool Equals(object obj)
246246
{
247247
if(obj is null || !(obj is ElectricField))

0 commit comments

Comments
 (0)