Return Type.GUID for Marshal.GenerateGuidForType in CoreCLR
authorFaizur Rahman <shrah@microsoft.com>
Thu, 10 Nov 2016 01:20:37 +0000 (17:20 -0800)
committerFaizur Rahman <shrah@microsoft.com>
Thu, 10 Nov 2016 01:20:37 +0000 (17:20 -0800)
src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs

index 8b0c132..8c0c226 100644 (file)
@@ -2370,7 +2370,7 @@ namespace System.Runtime.InteropServices
         public static Guid GenerateGuidForType(Type type)
         {
 #if FEATURE_CORECLR
-            throw new PlatformNotSupportedException();
+            return type.GUID;
         }
 #else
             Guid result = new Guid ();