diff options
Diffstat (limited to 'src/mscorlib/src/System/Reflection/Module.cs')
-rw-r--r-- | src/mscorlib/src/System/Reflection/Module.cs | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/src/mscorlib/src/System/Reflection/Module.cs b/src/mscorlib/src/System/Reflection/Module.cs index b6be38e434..bdf95fca26 100644 --- a/src/mscorlib/src/System/Reflection/Module.cs +++ b/src/mscorlib/src/System/Reflection/Module.cs @@ -17,7 +17,6 @@ namespace System.Reflection using System.Threading; using System.Runtime.CompilerServices; using System.Security; - using System.Security.Permissions; using System.IO; using System.Globalization; using System.Runtime.Versioning; @@ -25,7 +24,6 @@ namespace System.Reflection [Serializable] [Flags] - [System.Runtime.InteropServices.ComVisible(true)] public enum PortableExecutableKinds { NotAPortableExecutableImage = 0x0, @@ -38,12 +36,10 @@ namespace System.Reflection Unmanaged32Bit = 0x8, - [ComVisible(false)] Preferred32Bit = 0x10, } [Serializable] - [System.Runtime.InteropServices.ComVisible(true)] public enum ImageFileMachine { I386 = 0x014c, @@ -56,10 +52,7 @@ namespace System.Reflection } [Serializable] - [ClassInterface(ClassInterfaceType.None)] - [ComDefaultInterface(typeof(_Module))] - [System.Runtime.InteropServices.ComVisible(true)] - public abstract class Module : _Module, ISerializable, ICustomAttributeProvider + public abstract class Module : ISerializable, ICustomAttributeProvider { #region Static Constructor static Module() @@ -276,18 +269,15 @@ namespace System.Reflection throw new NotImplementedException(); } - [System.Runtime.InteropServices.ComVisible(true)] public virtual Type GetType(String className, bool ignoreCase) { return GetType(className, false, ignoreCase); } - [System.Runtime.InteropServices.ComVisible(true)] public virtual Type GetType(String className) { return GetType(className, false, false); } - [System.Runtime.InteropServices.ComVisible(true)] public virtual Type GetType(String className, bool throwOnError, bool ignoreCase) { throw new NotImplementedException(); @@ -983,7 +973,6 @@ namespace System.Reflection UnitySerializationHolder.GetUnitySerializationInfo(info, UnitySerializationHolder.ModuleUnity, this.ScopeName, this.GetRuntimeAssembly()); } - [System.Runtime.InteropServices.ComVisible(true)] public override Type GetType(String className, bool throwOnError, bool ignoreCase) { // throw on null strings regardless of the value of "throwOnError" @@ -1008,22 +997,7 @@ namespace System.Reflection { get { - String fullyQualifiedName = GetFullyQualifiedName(); - - if (fullyQualifiedName != null) { - bool checkPermission = true; - try { - Path.GetFullPath(fullyQualifiedName); - } - catch(ArgumentException) { - checkPermission = false; - } - if (checkPermission) { - new FileIOPermission( FileIOPermissionAccess.PathDiscovery, fullyQualifiedName ).Demand(); - } - } - - return fullyQualifiedName; + return GetFullyQualifiedName(); } } |