ModuleBuilder Methods
Silverlight
The ModuleBuilder type exposes the following members.
| Name | Description | |
|---|---|---|
|
CreateGlobalFunctions | Completes the global function definitions and global data definitions for this dynamic module. |
|
DefineDocument | Defines a document for source code. |
|
DefineEnum | Defines an enumeration type in this module. |
|
DefineGlobalMethod(String, MethodAttributes, Type, Type[]) | Defines a global method with the specified name, attributes, return type, and parameter types. |
|
DefineGlobalMethod(String, MethodAttributes, CallingConventions, Type, Type[]) | Defines a global method with the specified name, attributes, calling convention, return type, and parameter types. |
|
DefineGlobalMethod(String, MethodAttributes, CallingConventions, Type, Type[], Type[], Type[], Type[][], Type[][]) | Defines a global method with the specified name, attributes, calling convention, return type, custom modifiers for the return type, parameter types, and custom modifiers for the parameter types. |
|
DefineType(String) | Defines a private type with the specified name in this module. |
|
DefineType(String, TypeAttributes) | Defines a type with the specified type name and attributes in this module. |
|
DefineType(String, TypeAttributes, Type) | Defines a type with the specified type name, attributes, and base type in this module. |
|
DefineType(String, TypeAttributes, Type, Type[]) | Defines a type with the specified type name, attributes, base type, and implemented interfaces in this module. |
|
Equals | Returns a value that indicates whether this instance is equal to the specified object. (Overrides Object.Equals(Object).) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
|
GetArrayMethod | Returns the named method on an array class. |
|
GetArrayMethodToken | Returns the token for the named method on an array class. |
|
GetConstructorToken | Returns the token used to identify the specified constructor within this module. |
|
GetCustomAttributes(Boolean) | Returns all the custom attributes that have been applied to the current ModuleBuilder. (Overrides Module.GetCustomAttributes(Boolean).) |
|
GetCustomAttributes(Type, Boolean) | Returns all the custom attributes that have been applied to the current ModuleBuilder, and that derive from a specified attribute type. (Overrides Module.GetCustomAttributes(Type, Boolean).) |
|
GetField(String) | Returns the global field that has the specified name. (Inherited from Module.) |
|
GetField(String, BindingFlags) | Returns a module-level field, defined in the .sdata region of the portable executable (PE) file, that has the specified name and binding attributes. (Overrides Module.GetField(String, BindingFlags).) |
|
GetFields() | Returns the global fields defined on the module. (Inherited from Module.) |
|
GetFields(BindingFlags) | Returns all fields defined in the .sdata region of the portable executable (PE) file that match the specified binding flags. (Overrides Module.GetFields(BindingFlags).) |
|
GetFieldToken | Returns the token used to identify the specified field within this module. |
|
GetHashCode | Returns the hash code for this instance. (Overrides Object.GetHashCode().) |
|
GetMethod(String) | Returns the global method that has the specified name. (Inherited from Module.) |
|
GetMethod(String, Type[]) | Returns the global method that matches the specified name and parameter types. (Inherited from Module.) |
|
GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]) | Returns the global method that has the specified name, binding information, calling convention, and parameter types and modifiers. (Inherited from Module.) |
|
GetMethodImpl | Returns the module-level method that matches the specified criteria. (Overrides Module.GetMethodImpl(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[]).) |
|
GetMethods() | Returns the global methods defined on the module. (Inherited from Module.) |
|
GetMethods(BindingFlags) | Returns all the methods that have been defined at the module level for the current ModuleBuilder, and that match the specified binding flags. (Overrides Module.GetMethods(BindingFlags).) |
|
GetMethodToken | Returns the token used to identify the specified method within this module. |
|
GetSignatureToken(SignatureHelper) | Defines a token for the signature that is defined by the specified SignatureHelper. |
|
GetSignatureToken(Byte[], Int32) | Defines a token for the signature that has the specified character array and signature length. |
|
GetStringConstant | Returns the token of the given string in the module’s constant pool. |
|
GetType() | Gets the Type of the current instance. (Inherited from Object.) |
|
GetType(String) | Gets the named type defined in this module. (Overrides Module.GetType(String).) |
|
GetType(String, Boolean) | Gets the named type defined in this module, optionally ignoring the case of the type name. (Overrides Module.GetType(String, Boolean).) |
|
GetType(String, Boolean, Boolean) | Gets the named type defined in this module, optionally ignoring the case of the type name. Optionally throws an exception if the type is not found. (Overrides Module.GetType(String, Boolean, Boolean).) |
|
GetTypes | Returns all the classes defined within this module. (Overrides Module.GetTypes().) |
|
GetTypeToken(String) | Returns the token used to identify the type with the specified name. |
|
GetTypeToken(Type) | Returns the token used to identify the specified type within this module. |
|
IsDefined | Returns a value that indicates whether the specified attribute type has been applied to this module. (Overrides Module.IsDefined(Type, Boolean).) |
|
IsTransient | Returns a value that indicates whether this dynamic module is transient. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
ResolveField(Int32) | Returns the field identified by the specified metadata token. (Inherited from Module.) |
|
ResolveField(Int32, Type[], Type[]) | Returns the field identified by the specified metadata token, in the context defined by the specified generic type parameters. (Overrides Module.ResolveField(Int32, Type[], Type[]).) |
|
ResolveMethod(Int32) | Returns the method or constructor that is identified by the specified metadata token. (Inherited from Module.) |
|
ResolveMethod(Int32, Type[], Type[]) | Returns the method or constructor identified by the specified metadata token, in the context defined by the specified generic type parameters. (Overrides Module.ResolveMethod(Int32, Type[], Type[]).) |
|
ResolveString | Returns the string identified by the specified metadata token. (Overrides Module.ResolveString(Int32).) |
|
ResolveType(Int32) | Returns the type that is identified by the specified metadata token. (Inherited from Module.) |
|
ResolveType(Int32, Type[], Type[]) | Returns the type identified by the specified metadata token, in the context defined by the specified generic type parameters. (Overrides Module.ResolveType(Int32, Type[], Type[]).) |
|
SetCustomAttribute | Applies a custom attribute to this module by using a custom attribute builder. |
|
ToString | Returns the name of the module. (Inherited from Module.) |