summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/shared/Internal
diff options
context:
space:
mode:
authorPhil Garcia <phil@thinkedge.com>2018-06-26 22:03:49 -0700
committerPhil Garcia <phil@thinkedge.com>2018-06-26 22:03:49 -0700
commitd1d26ac8fd6aabbfe655de03bf0ee3ecb2d096cd (patch)
tree23f338d2ef62dd3a66ec12e21e45a79f5b843345 /src/System.Private.CoreLib/shared/Internal
parent7fa1530c9d86ca3d4fc54a3c98de1ca667e1022b (diff)
downloadcoreclr-d1d26ac8fd6aabbfe655de03bf0ee3ecb2d096cd.tar.gz
coreclr-d1d26ac8fd6aabbfe655de03bf0ee3ecb2d096cd.tar.bz2
coreclr-d1d26ac8fd6aabbfe655de03bf0ee3ecb2d096cd.zip
Applying PR feedback
Diffstat (limited to 'src/System.Private.CoreLib/shared/Internal')
-rw-r--r--src/System.Private.CoreLib/shared/Internal/Runtime/CompilerServices/Unsafe.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/shared/Internal/Runtime/CompilerServices/Unsafe.cs b/src/System.Private.CoreLib/shared/Internal/Runtime/CompilerServices/Unsafe.cs
index aeff3ce2ca..03d3f85211 100644
--- a/src/System.Private.CoreLib/shared/Internal/Runtime/CompilerServices/Unsafe.cs
+++ b/src/System.Private.CoreLib/shared/Internal/Runtime/CompilerServices/Unsafe.cs
@@ -358,6 +358,17 @@ namespace Internal.Runtime.CompilerServices
}
/// <summary>
+ /// Reinterprets the given location as a reference to a value of type <typeparamref name="T"/>.
+ /// </summary>
+ [Intrinsic]
+ [NonVersionable]
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
+ public static ref T AsRef<T>(in T source)
+ {
+ throw new PlatformNotSupportedException();
+ }
+
+ /// <summary>
/// Determines the byte offset from origin to target from the given references.
/// </summary>
[Intrinsic]