Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit ce9aecc

Browse files
committed
Update ref readonly parameter for new compiler syntax: in.
1 parent 73a3742 commit ce9aecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/System.Runtime.CompilerServices.Unsafe/ref/System.Runtime.CompilerServices.Unsafe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static partial class Unsafe
1616
public static bool AreSame<T>(ref T left, ref T right) { throw null; }
1717
public unsafe static void* AsPointer<T>(ref T value) { throw null; }
1818
public unsafe static ref T AsRef<T>(void* source) { throw null; }
19-
public static ref T AsRef<T>(ref readonly T source) { throw null; }
19+
public static ref T AsRef<T>(in T source) { throw null; }
2020
public static T As<T>(object o) where T : class { throw null; }
2121
public static ref TTo As<TFrom, TTo>(ref TFrom source) { throw null; }
2222
public static System.IntPtr ByteOffset<T>(ref T origin, ref T target) { throw null; }

0 commit comments

Comments
 (0)