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))

0 commit comments

Comments
 (0)