Misc Span/Memory changes (#15941)
authorIan Hays <ianha@microsoft.com>
Tue, 23 Jan 2018 03:07:15 +0000 (19:07 -0800)
committerJan Kotas <jkotas@microsoft.com>
Tue, 23 Jan 2018 03:07:15 +0000 (19:07 -0800)
commitc69e8148e42d581ceec9fd3d8ef8d65706b14235
tree93bcf1013337631dca0108a68d8aa79a8d9a2518
parentd69118807bff88c48ace28d4befa2c41bf4e7766
Misc Span/Memory changes (#15941)

* Misc Span/Memory additions
- Add MemoryMarshal.CreateSpan to replace DangerousCreate
- Add MemoryMarshal.CreateReadOnlySpan to replace DangerousCreate
- Add MemoryMarshal.Cast to replace NonPortableCast
- Add ToString override to Span and ReadOnlySpan
- Add ToEnumerable function to MemoryMarshal that takes a ReadOnlyMemory
src/mscorlib/shared/System.Private.CoreLib.Shared.projitems
src/mscorlib/shared/System/Globalization/DateTimeFormat.cs
src/mscorlib/shared/System/Globalization/TimeSpanFormat.cs
src/mscorlib/shared/System/ReadOnlySpan.cs
src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.Fast.cs [new file with mode: 0644]
src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs
src/mscorlib/shared/System/Span.cs