Port changes to shared files Nullable.cs, Enum.cs (#36597)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Sat, 16 May 2020 14:09:54 +0000 (16:09 +0200)
committerGitHub <noreply@github.com>
Sat, 16 May 2020 14:09:54 +0000 (07:09 -0700)
src/libraries/System.Private.CoreLib/src/System/Enum.cs
src/libraries/System.Private.CoreLib/src/System/Nullable.cs

index 9d80c82..33e294a 100644 (file)
@@ -10,7 +10,6 @@ using System.Runtime.CompilerServices;
 using Internal.Runtime.CompilerServices;
 
 #if CORERT
-using CorElementType = System.Runtime.RuntimeImports.RhCorElementType;
 using RuntimeType = System.Type;
 using EnumInfo = Internal.Runtime.Augments.EnumInfo;
 #endif
index 223a446..8a5416d 100644 (file)
@@ -111,7 +111,7 @@ namespace System
                 {
                     if (nullableEEType.IsNullable)
                     {
-                        return Internal.Reflection.Core.NonPortable.RuntimeTypeUnifier.GetRuntimeTypeForEEType(nullableEEType.NullableType);
+                        return Type.GetTypeFromEETypePtr(nullableEEType.NullableType);
                     }
                 }
                 return null;