Add APIs to make nint/nuint match Int32 and others (#47595)
authorCyl18 <cyl18a@gmail.com>
Fri, 29 Jan 2021 16:16:03 +0000 (00:16 +0800)
committerGitHub <noreply@github.com>
Fri, 29 Jan 2021 16:16:03 +0000 (08:16 -0800)
commitf2148079d4476073bb5e79277b557807ed0c9984
tree03fa94717c2bd0214d18859c03f64bfdb0504c37
parentdcef2897eb61012d6e8c2ccc44e72eb7c173e06b
Add APIs to make nint/nuint match Int32 and others (#47595)

* Add APIs to make nint/nuint match Int32 and others

* Add default argument to nint/nuint TryFormat

* Fix Api Compat error

* Add test to nint/nuint

* fix test error
src/libraries/System.Private.CoreLib/src/System/IntPtr.cs
src/libraries/System.Private.CoreLib/src/System/UIntPtr.cs
src/libraries/System.Runtime/ref/System.Runtime.cs
src/libraries/System.Runtime/tests/System/IntPtrTests.cs
src/libraries/System.Runtime/tests/System/UIntPtrTests.cs