From: Ahson Khan Date: Sat, 16 Dec 2017 01:45:18 +0000 (-0800) Subject: ReadOnlySpan GetReference returns ref instead of ref readonly (#15548) X-Git-Tag: accepted/tizen/base/20180629.140029~308 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c958f345832f649889973e84bdac2f215a0d0e3;p=platform%2Fupstream%2Fcoreclr.git ReadOnlySpan GetReference returns ref instead of ref readonly (#15548) --- diff --git a/src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs b/src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs index b023022..2651df5 100644 --- a/src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs +++ b/src/mscorlib/shared/System/Runtime/InteropServices/MemoryMarshal.cs @@ -28,7 +28,7 @@ namespace System.Runtime.InteropServices public static ref T GetReference(Span span) => ref span._pointer.Value; - public static ref readonly T GetReference(ReadOnlySpan span) => ref span._pointer.Value; + public static ref T GetReference(ReadOnlySpan span) => ref span._pointer.Value; public static bool TryGetArray(ReadOnlyMemory readOnlyMemory, out ArraySegment arraySegment) {