Merge pull request dotnet/corert#4046 from dotnet/nmirror
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Sat, 1 Jul 2017 03:04:18 +0000 (20:04 -0700)
committerJan Kotas <jkotas@microsoft.com>
Sat, 1 Jul 2017 05:54:32 +0000 (22:54 -0700)
Merge nmirror to master

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
src/mscorlib/shared/System/ReadOnlySpan.cs
src/mscorlib/shared/System/Span.cs

index 0851b25..ae49f59 100644 (file)
@@ -15,6 +15,7 @@ namespace System
     /// ReadOnlySpan represents a contiguous region of arbitrary memory. Unlike arrays, it can point to either managed
     /// or native memory, or to memory allocated on the stack. It is type- and memory-safe.
     /// </summary>
+    [IsByRefLike]
     public struct ReadOnlySpan<T>
     {
         /// <summary>A byref or a native ptr.</summary>
index 2494ce3..88612eb 100644 (file)
@@ -22,6 +22,7 @@ namespace System
     /// Span represents a contiguous region of arbitrary memory. Unlike arrays, it can point to either managed
     /// or native memory, or to memory allocated on the stack. It is type- and memory-safe.
     /// </summary>
+    [IsByRefLike]
     public struct Span<T>
     {
         /// <summary>A byref or a native ptr.</summary>