ModuleBuilder
Defines and represents a module in a dynamic assembly.
Completes the global function definitions and global data definitions for this dynamic module.
Defines an enumeration type that is a value type with a single non-static field called value__ of the specified type.
public MethodBuilder DefineGlobalMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
Defines a global method with the specified name, attributes, calling convention, return type, and parameter types.
public MethodBuilder DefineGlobalMethod(string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type[] requiredReturnTypeCustomModifiers, Type[] optionalReturnTypeCustomModifiers, Type[] parameterTypes, Type[][] requiredParameterTypeCustomModifiers, Type[][] optionalParameterTypeCustomModifiers)
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.
public MethodBuilder DefineGlobalMethod(string name, MethodAttributes attributes, Type returnType, Type[] parameterTypes)
Defines a global method with the specified name, attributes, return type, and parameter types.
Defines an initialized data field in the .sdata section of the portable executable (PE) file.
Constructs a TypeBuilder for a private type with the specified name in this module.
Constructs a TypeBuilder given the type name and the type attributes.
Constructs a TypeBuilder given type name, its attributes, and the type that the defined type extends.
Constructs a TypeBuilder given the type name, the attributes, the type that the defined type extends, and the total size of the type.
Constructs a TypeBuilder given the type name, the attributes, the type that the defined type extends, and the packing size of the type.
public TypeBuilder DefineType(string name, TypeAttributes attr, Type parent, PackingSize packingSize, int typesize)
Constructs a TypeBuilder given the type name, attributes, the type that the defined type extends, the packing size of the defined type, and the total size of the defined type.
Constructs a TypeBuilder given the type name, attributes, the type that the defined type extends, and the interfaces that the defined type implements.
Defines an uninitialized data field in the .sdata section of the portable executable (PE) file.
public MethodInfo GetArrayMethod(Type arrayClass, string methodName, CallingConventions callingConvention, Type returnType, Type[] parameterTypes)
Returns the named method on an array class.
Applies a custom attribute to this module by using a specified binary large object (BLOB) that represents the attribute.
Applies a custom attribute to this module by using a custom attribute builder.