diff options
Diffstat (limited to 'src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs b/src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs index effa176376..1d518b16e4 100644 --- a/src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs +++ b/src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs @@ -1718,11 +1718,7 @@ namespace System.Runtime.InteropServices //======================================================================== private static IntPtr LoadLicenseManager() { - Assembly sys = Assembly.Load("System, Version=" + ThisAssembly.Version + - ", Culture=neutral, PublicKeyToken=" + AssemblyRef.EcmaPublicKeyToken); - Type t = sys.GetType("System.ComponentModel.LicenseManager"); - if (t == null || !t.IsVisible) - return IntPtr.Zero; + Type t = Type.GetType("System.ComponentModel.LicenseManager, System", throwOnError: true); return t.TypeHandle.Value; } |