Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/System.Private.CoreLib/shared/System/IntPtr.cs3
-rw-r--r--src/System.Private.CoreLib/shared/System/UIntPtr.cs3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/shared/System/IntPtr.cs b/src/System.Private.CoreLib/shared/System/IntPtr.cs
index f79334a96..d23742fa7 100644
--- a/src/System.Private.CoreLib/shared/System/IntPtr.cs
+++ b/src/System.Private.CoreLib/shared/System/IntPtr.cs
@@ -217,6 +217,9 @@ namespace System
[CLSCompliant(false)]
[Intrinsic]
[NonVersionable]
+#if PROJECTN
+ [System.Runtime.CompilerServices.DependencyReductionRootAttribute]
+#endif
public unsafe void* ToPointer()
{
return _value;
diff --git a/src/System.Private.CoreLib/shared/System/UIntPtr.cs b/src/System.Private.CoreLib/shared/System/UIntPtr.cs
index 9534f4f87..c57dd86a7 100644
--- a/src/System.Private.CoreLib/shared/System/UIntPtr.cs
+++ b/src/System.Private.CoreLib/shared/System/UIntPtr.cs
@@ -208,6 +208,9 @@ namespace System
[Intrinsic]
[NonVersionable]
+#if PROJECTN
+ [System.Runtime.CompilerServices.DependencyReductionRootAttribute]
+#endif
public unsafe void* ToPointer()
{
return _value;