Redo minor cleanups in System.Runtime.Numerics (#71274)
authorHuo Yaoyuan <huoyaoyuan@hotmail.com>
Sun, 10 Jul 2022 21:42:20 +0000 (05:42 +0800)
committerGitHub <noreply@github.com>
Sun, 10 Jul 2022 21:42:20 +0000 (17:42 -0400)
commitc8cc6c141d6d26af98e8020ca676cf6c2ee4ae5b
treebbb8adc614ac0e9f75a7f41c71c55da25b4dbb80
parentf173142681731bf418d7222aa6d281c7a1e14916
Redo minor cleanups in System.Runtime.Numerics (#71274)

* Replace union with BitConverter

* Cleanup complex

* Use HashCode

* Update src/libraries/System.Runtime.Numerics/src/System/Numerics/NumericsHelpers.cs

* Update src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs

Co-authored-by: Tanner Gooding <tagoo@outlook.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Tanner Gooding <tagoo@outlook.com>
src/libraries/System.Runtime.Numerics/src/System/Numerics/BigInteger.cs
src/libraries/System.Runtime.Numerics/src/System/Numerics/Complex.cs
src/libraries/System.Runtime.Numerics/src/System/Numerics/NumericsHelpers.cs