Mirror changes from dotnet/corefx (#15909)
authordotnet bot <dotnet-bot@dotnetfoundation.org>
Thu, 18 Jan 2018 23:36:01 +0000 (15:36 -0800)
committerTarek Mahmoud Sayed <tarekms@microsoft.com>
Thu, 18 Jan 2018 23:36:01 +0000 (15:36 -0800)
commitd44f3e883a803b2d1fe4fb2c07f92d78bff56eed
tree1238014153f3fb465a07a0010c56d669f3a2eefe
parent25d6ccb0092d1a1aa5b785dd5ffee0a4b4c5f13e
Mirror changes from dotnet/corefx (#15909)

* Consolidate System.Memory code to shared folder (dotnet/corefx#26393)

* Consolidate System.Memory code to shared folder

This change is removing the duplicate codes from System.Memory and keep only one copy under the shared folder to be easier to edit such code in one place and get reflected on the other repos.

* Address the review feedback

* Addressing more feedback

* More cleanup

* remove empty line and added a comment

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
* Add missing throw helper methods used in the code we got from corefx

* Update the exception helper

* fix the break
src/mscorlib/Resources/Strings.resx
src/mscorlib/shared/System/Buffers/IRetainable.cs
src/mscorlib/shared/System/Buffers/MemoryHandle.cs
src/mscorlib/shared/System/Buffers/OwnedMemory.cs
src/mscorlib/shared/System/Memory.cs
src/mscorlib/shared/System/MemoryDebugView.cs
src/mscorlib/shared/System/ReadOnlyMemory.cs
src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs
src/mscorlib/src/System/ThrowHelper.cs