Skip to content

Commit f3ec420

Browse files
tmilnthorpangularsen
authored andcommitted
Rename AsBaseNumericType to GetValueAs (#619)
1 parent 7ae21c6 commit f3ec420

File tree

92 files changed

+1188
-1188
lines changed

Some content is hidden

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

92 files changed

+1188
-1188
lines changed

UnitsNet/CustomCode/Quantities/AmountOfSubstance.extra.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public partial struct AmountOfSubstance
3030
/// <returns>The number of particles (atoms or molecules) in this amount of substance.</returns>
3131
public double NumberOfParticles()
3232
{
33-
var moles = AsBaseNumericType(AmountOfSubstanceUnit.Mole);
33+
var moles = GetValueAs(AmountOfSubstanceUnit.Mole);
3434
return AvogadroConstant * moles;
3535
}
3636
}

UnitsNet/GeneratedCode/Quantities/Acceleration.NetFramework.g.cs

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet/GeneratedCode/Quantities/AmountOfSubstance.NetFramework.g.cs

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet/GeneratedCode/Quantities/AmplitudeRatio.NetFramework.g.cs

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)