[release/6.0-rc2] Generic Math Preview - Use correct NumberStyle when parsing double...
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 21 Sep 2021 00:40:41 +0000 (18:40 -0600)
committerGitHub <noreply@github.com>
Tue, 21 Sep 2021 00:40:41 +0000 (18:40 -0600)
commitd0603006399b2a806b4f848f4e8986d3b2306b5e
tree1bc72a9af2a34d84d3c4478e9d7a9a0a4f320aa0
parentc8741bc2c5902b1597944ed155a1aa185924fafb
[release/6.0-rc2] Generic Math Preview - Use correct NumberStyle when parsing double and float (#59366)

* User correct NumberStyle when parsing double and float

IParseable<float> and IParseable<double> would fail when parsing
a decimal point number due to incorrect NumberStyles parameter.

E.g. IParseable<double>.TryParse would fail as opposed to
IParseable<double>.Parse because the former explicitly states to use
NumberStyles.Integer

* Adding tests covering parse for float/double/half

* Delete MSBuild_pid-37116_6904092b1c9a481da960c9e28eba2a27.failure.txt

Co-authored-by: Richard Sefr <richard.sefr@solarwinds.com>
Co-authored-by: Tanner Gooding <tagoo@outlook.com>
src/libraries/System.Private.CoreLib/src/System/Double.cs
src/libraries/System.Private.CoreLib/src/System/Half.cs
src/libraries/System.Private.CoreLib/src/System/Single.cs
src/libraries/System.Runtime.Experimental/tests/System.Runtime.Experimental.Tests.csproj
src/libraries/System.Runtime/tests/System.Runtime.Tests.csproj
src/libraries/System.Runtime/tests/System/DoubleTests.GenericMath.cs [new file with mode: 0644]
src/libraries/System.Runtime/tests/System/GenericMathHelpers.cs
src/libraries/System.Runtime/tests/System/HalfTests.GenericMath.cs [new file with mode: 0644]
src/libraries/System.Runtime/tests/System/SingleTests.GenericMath.cs [new file with mode: 0644]