Refactor Unsafe.cs to get it more in sync with CoreRT. (#15510)
authorAhson Khan <ahkha@microsoft.com>
Thu, 14 Dec 2017 02:29:43 +0000 (18:29 -0800)
committerGitHub <noreply@github.com>
Thu, 14 Dec 2017 02:29:43 +0000 (18:29 -0800)
commit729d2a66b3a9255eded148bc29cb0ec4b9143111
tree24a498aaa7959fd47a0936def853628d7cdb945c
parentca80b27fbb258c835116a7835aee520f3d659de2
Refactor Unsafe.cs to get it more in sync with CoreRT. (#15510)

* Refactor Unsafe.cs to get it more in sync with CoreRT.

* Format the document.

* Unifying the copies of Unsafe using ifdefs

* Change exception thrown to PlatformNotSupportedException

* Addressing PR feedback and moving Unsafe to shared.

* Addressing PR feedback

* Addressing PR review - adding intrinsic attribute
src/mscorlib/System.Private.CoreLib.csproj
src/mscorlib/shared/Internal/Runtime/CompilerServices/Unsafe.cs [new file with mode: 0644]
src/mscorlib/shared/System.Private.CoreLib.Shared.projitems
src/mscorlib/src/Internal/Runtime/CompilerServices/Unsafe.cs [deleted file]