Preserve pinned flag in {ReadOnly}Memory<T>.Slice (dotnet/corefxdotnet/coreclr#29246...
authordotnet bot <dotnet-bot@dotnetfoundation.org>
Sat, 21 Apr 2018 00:56:35 +0000 (17:56 -0700)
committerAhson Khan <ahkha@microsoft.com>
Sat, 21 Apr 2018 00:56:35 +0000 (17:56 -0700)
commitd05185081d80edfabcb949c4383d9576a0be4cf4
tree7d4f9ea4a8f6a350f50fd794e336afaacb1ded33
parenteb0a997dd6ae33d67830959800d200d05e3bdb86
Preserve pinned flag in {ReadOnly}Memory<T>.Slice (dotnet/corefxdotnet/coreclr#29246) (dotnet/coreclr#17712)

* Preserve pinned flag in {ReadOnly}Memory<T>.Slice

* Address PR feedback.

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/c14d048451920b5e511c5a5b27c23c97b30ac0fe
src/coreclr/src/mscorlib/shared/System/Memory.cs
src/coreclr/src/mscorlib/shared/System/ReadOnlyMemory.cs