Add debugger display for huge BigInteger (#75796)
authorHuo Yaoyuan <huoyaoyuan@hotmail.com>
Sun, 8 Jan 2023 03:46:57 +0000 (11:46 +0800)
committerGitHub <noreply@github.com>
Sun, 8 Jan 2023 03:46:57 +0000 (22:46 -0500)
commit13ce7b9871073bc50ed149eff03110124e8f7a3e
tree9d7a62487ed8d2b88301b1751ca73cf7f5668969
parent0c85bb93a834efe2a22e5053afdcc37344223567
Add debugger display for huge BigInteger (#75796)

* Add debugger display for huge BigInteger

* Apply suggestions from code review

Co-authored-by: tfenise <tfenise@live.com>
* Adjust for overflow and rounding

* Fix and add test

* Apply suggestions from code review

Co-authored-by: tfenise <tfenise@live.com>
* Skip test on browser

* Adjust overflow handling and comment

* Apply suggestions from code review

Co-authored-by: Dan Moseley <danmose@microsoft.com>
* Revert "Adjust overflow handling and comment"

This reverts commit ceac7654aeb7ce4b2b91f6d84cf891c4bcdce755.

* Update ToString culture

Co-authored-by: tfenise <tfenise@live.com>
* Apply suggestions from code review

Co-authored-by: Tanner Gooding <tagoo@outlook.com>
* Update for constant and shortcut

* Use invariant culture in test

* Use log10(2) as a constant

Co-authored-by: Drew Kersnar <18474647+dakersnar@users.noreply.github.com>
* Update length thresold to 4*uint

* Update bigger test cases

* Update test value

Co-authored-by: tfenise <tfenise@live.com>
Co-authored-by: Dan Moseley <danmose@microsoft.com>
Co-authored-by: Tanner Gooding <tagoo@outlook.com>
Co-authored-by: Drew Kersnar <18474647+dakersnar@users.noreply.github.com>
src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs
src/libraries/System.Runtime.Numerics/tests/BigInteger/DebuggerDisplayTests.cs [new file with mode: 0644]
src/libraries/System.Runtime.Numerics/tests/System.Runtime.Numerics.Tests.csproj