diff options
Diffstat (limited to 'mcs/class/corlib/System.Reflection/Module.cs')
-rw-r--r-- | mcs/class/corlib/System.Reflection/Module.cs | 170 |
1 files changed, 170 insertions, 0 deletions
diff --git a/mcs/class/corlib/System.Reflection/Module.cs b/mcs/class/corlib/System.Reflection/Module.cs new file mode 100644 index 00000000000..e84c5efca26 --- /dev/null +++ b/mcs/class/corlib/System.Reflection/Module.cs @@ -0,0 +1,170 @@ +// +// System.Reflection/Module.cs +// +// Author: +// Paolo Molaro (lupus@ximian.com) +// +// (C) 2001 Ximian, Inc. http://www.ximian.com +// + +using System; +using System.Reflection; +using System.Runtime.Serialization; +using System.Security.Cryptography.X509Certificates; + +namespace System.Reflection { + + [Serializable] + public class Module : ISerializable, ICustomAttributeProvider { + + public static readonly TypeFilter FilterTypeName; + public static readonly TypeFilter FilterTypeNameIgnoreCase; + + private IntPtr _impl; /* a pointer to a MonoImage */ + internal Assembly assembly; + internal string fqname; + internal string name; + internal string scopename; + + internal Module () {} + + public Assembly Assembly { + get { return assembly; } + } + + public virtual string FullyQualifiedName { + get { return fqname; } + } + + public string Name { + get { return name; } + } + + public string ScopeName { + get { return scopename; } + } + + [MonoTODO] + public virtual Type[] FindTypes(TypeFilter filter, object filterCriteria) + { + return null; + } + + [MonoTODO] + public virtual object[] GetCustomAttributes(bool inherit) + { + return MonoCustomAttrs.GetCustomAttributes (this, inherit); + } + + [MonoTODO] + public virtual object[] GetCustomAttributes(Type attributeType, bool inherit) + { + return MonoCustomAttrs.GetCustomAttributes (this, attributeType, inherit); + } + + [MonoTODO] + public FieldInfo GetField (string name) + { + return null; + } + + [MonoTODO] + public FieldInfo GetField (string name, BindingFlags flags) + { + return null; + } + + [MonoTODO] + public FieldInfo[] GetFields () + { + return null; + } + + [MonoTODO] + public MethodInfo GetMethod (string name) + { + return null; + } + + [MonoTODO] + public MethodInfo GetMethod (string name, Type[] types) + { + return null; + } + + [MonoTODO] + public MethodInfo GetMethod (string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) + { + return null; + } + + [MonoTODO] + protected virtual MethodInfo GetMethodImpl (string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) + { + return null; + } + + [MonoTODO] + public MethodInfo[] GetMethods () + { + return null; + } + + [MonoTODO] + public virtual void GetObjectData (SerializationInfo info, StreamingContext context) + { + } + + public X509Certificate GetSignerCertificate () + { + try { + return X509Certificate.CreateFromSignedFile (assembly.Location); + } + catch { + return null; + } + } + + [MonoTODO] + public virtual Type GetType(string className) + { + return null; + } + + [MonoTODO] + public virtual Type GetType(string className, bool ignoreCase) + { + return null; + } + + [MonoTODO] + public virtual Type GetType(string className, bool throwOnError, bool ignoreCase) + { + return null; + } + + [MonoTODO] + public virtual Type[] GetTypes() + { + return null; + } + + [MonoTODO] + public virtual bool IsDefined (Type attributeType, bool inherit) + { + return MonoCustomAttrs.IsDefined (this, attributeType, inherit); + } + + [MonoTODO] + public bool IsResource() + { + return false; + } + + [MonoTODO] + public override string ToString () + { + return "Reflection.Module: " + name; + } + } +} |