added AsBytes() and NonPortableCast() to Span and ReadOnlySpan API (#7220)
authorAdam Sitnik <adam.sitnik@gmail.com>
Fri, 16 Sep 2016 20:25:08 +0000 (22:25 +0200)
committerJan Kotas <jkotas@microsoft.com>
Mon, 31 Oct 2016 00:27:38 +0000 (17:27 -0700)
commit93ee105691085f4edef14ff108708b765a9a9d18
tree60cac8fba7290e8c3de321dcab9f3e4b952f923a
parent3ba437ef4cd6beb1597742051b1c16310f074794
added AsBytes() and NonPortableCast() to Span and ReadOnlySpan API (#7220)

* added AsBytes() and NonPortableCast() to Span and ReadOnlySpan API, fixes #7211

* throw when casted types contain pointers
src/mscorlib/model.xml
src/mscorlib/src/System.Private.CoreLib.txt
src/mscorlib/src/System/ReadOnlySpan.cs
src/mscorlib/src/System/Span.cs
src/mscorlib/src/System/ThrowHelper.cs
src/mscorlib/src/mscorlib.txt
tests/src/CoreMangLib/system/span/BasicSpanTest.cs