Module

Module CF 1.0, ECMA 1.0, serializable

System.Reflection (mscorlib.dll) class

Modules are .NET executable files (either .EXE or .DLL files) consisting of classes or interfaces. One or more modules and other resources (such as graphics) make up an assembly. The Module class allows reflection of these executables. FilterTypeName and FilterTypeNameIgnoreCase are static properties that return a TypeFilter delegate that filters types by name . The first is case-sensitive, and the second is case-insensitive. Assembly returns the appropriate Assembly object that this is part of. Name returns the filename of this module and FullyQualifiedName returns that filename as well as the full path . Use FindTypes( ) to return a list of types from a module accepted by a TypeFilter delegate. The methods prefixed with Get return the specific methods, types, or fields contained in this module, and IsDefined( ) checks whether a specific attribute is defined on the module.

 public class  Module  : System.Runtime.Serialization.ISerializable, ICustomAttributeProvider {  // Public Static Fields  public static readonly TypeFilter  FilterTypeName  ;  // =System.Reflection.TypeFilter  public static readonly TypeFilter  FilterTypeNameIgnoreCase  ;  // =System.Reflection.TypeFilter   // Public Instance Properties  public Assembly  Assembly  {get; }    public virtual string  FullyQualifiedName  {get; }    public string  Name  {get; }    public string  ScopeName  {get; }  // Public Instance Methods  public virtual Type[ ]  FindTypes  (TypeFilter   filter   , object   filterCriteria   );    public virtual object[ ]  GetCustomAttributes  (bool   inherit   );  // implements ICustomAttributeProvider  public virtual object[ ]  GetCustomAttributes  (Type   attributeType   , bool   inherit   )  // implements ICustomAttributeProvider  public FieldInfo  GetField  (string   name   );    public FieldInfo  GetField  (string   name   , BindingFlags   bindingAttr   );    public FieldInfo[ ]  GetFields  ( );    public MethodInfo  GetMethod  (string   name   );    public MethodInfo  GetMethod  (string   name   , BindingFlags   bindingAttr   , Binder   binder   ,        CallingConventions   callConvention   , Type[ ]   types   , ParameterModifier[ ]   modifiers   );    public MethodInfo  GetMethod  (string   name   , Type[ ]   types   );    public MethodInfo[ ]  GetMethods  ( );    public virtual void  GetObjectData  (System.Runtime.Serialization.SerializationInfo   info   ,        System.Runtime.Serialization.StreamingContext   context   )  // implements ISerializable  public X509Certificate  GetSignerCertificate  ( );    public virtual Type  GetType  (string   className   );    public virtual Type  GetType  (string   className   , bool   ignoreCase   );    public virtual Type  GetType  (string   className   , bool   throwOnError   , bool   ignoreCase   );    public virtual Type[ ]  GetTypes  ( );    public virtual bool  IsDefined  (Type   attributeType   , bool   inherit   )  // implements ICustomAttributeProvider  public bool  IsResource  ( );    public override string  ToString  ( );  // overrides object   // Protected Instance Methods  protected virtual MethodInfo  GetMethodImpl  (string   name   , BindingFlags   bindingAttr   , Binder   binder   ,         CallingConventions   callConvention   , Type[ ]   types   , ParameterModifier[ ]   modifiers   ); } 

Subclasses

System.Reflection.Emit.ModuleBuilder

Returned By

Assembly.{GetLoadedModules( ) , GetModule( ) , GetModules( ) , LoadModule( )} , System.Reflection.Emit.ConstructorBuilder.GetModule( ) , System.Reflection.Emit.MethodBuilder.GetModule( ) , ModuleResolveEventHandler.{EndInvoke( ) , Invoke( )} , System.Type.Module

Passed To

System.Attribute.{GetCustomAttribute( ) , GetCustomAttributes( ) , IsDefined( )} , System.Reflection.Emit.SignatureHelper.{GetFieldSigHelper( ) , GetLocalVarSigHelper( ) , GetMethodSigHelper( ) , GetPropertySigHelper( )} , System.Runtime.InteropServices.Marshal.GetHINSTANCE( )



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net