4 instantiations of ModuleBuilder
mscorlib (4)
system\reflection\emit\assemblybuilder.cs (4)
202ModuleBuilder modBuilder = new ModuleBuilder(this, (InternalModuleBuilder)module); 472m_manifestModuleBuilder = new ModuleBuilder(this, modBuilder); 674dynModule = new ModuleBuilder(this, internalDynModule); 901dynModule = new ModuleBuilder(this, internalDynModule);
166 references to ModuleBuilder
mscorlib (137)
system\exception.cs (2)
408System.Reflection.Emit.ModuleBuilder moduleBuilder = module as System.Reflection.Emit.ModuleBuilder;
system\reflection\emit\assemblybuilder.cs (34)
197private ModuleBuilder GetOnDiskAssemblyModuleBuilder() 202ModuleBuilder modBuilder = new ModuleBuilder(this, (InternalModuleBuilder)module); 217private ModuleBuilder m_manifestModuleBuilder; 222private ModuleBuilder m_onDiskAssemblyModuleBuilder; 229internal ModuleBuilder GetModuleBuilder(InternalModuleBuilder module) 237foreach (ModuleBuilder modBuilder in m_assemblyData.m_moduleBuilderList) 594public ModuleBuilder DefineDynamicModule( 597Contract.Ensures(Contract.Result<ModuleBuilder>() != null); 605public ModuleBuilder DefineDynamicModule( 609Contract.Ensures(Contract.Result<ModuleBuilder>() != null); 616private ModuleBuilder DefineDynamicModuleInternal( 630private ModuleBuilder DefineDynamicModuleInternalNoLock( 641Contract.Ensures(Contract.Result<ModuleBuilder>() != null); 648ModuleBuilder dynModule; 686pInternalSymWriter = ModuleBuilder.nCreateISymWriterForDynamicModule(dynModule.InternalModule, name); 785public ModuleBuilder DefineDynamicModule( 789Contract.Ensures(Contract.Result<ModuleBuilder>() != null); 808public ModuleBuilder DefineDynamicModule( 813Contract.Ensures(Contract.Result<ModuleBuilder>() != null); 822private ModuleBuilder DefineDynamicModuleInternal( 846private ModuleBuilder DefineDynamicModuleInternalNoLock( 865Contract.Ensures(Contract.Result<ModuleBuilder>() != null); 882ModuleBuilder dynModule; 1558public ModuleBuilder GetDynamicModule( 1567private ModuleBuilder GetDynamicModuleNoLock( 1580ModuleBuilder moduleBuilder = (ModuleBuilder) m_assemblyData.m_moduleBuilderList[i]; 1636ModuleBuilder tmpMB = tmpModule as ModuleBuilder; 1780ModuleBuilder modBuilder; 1782ModuleBuilder assemblyModule; 1786ModuleBuilder onDiskAssemblyModule; 1940ModuleBuilder mBuilder = (ModuleBuilder) m_assemblyData.m_moduleBuilderList[i];
system\reflection\emit\assemblybuilderdata.cs (11)
46m_moduleBuilderList = new List<ModuleBuilder>(); 62internal void AddModule(ModuleBuilder dynModule) 299ModuleBuilder moduleBuilder = m_moduleBuilderList[i]; 323ModuleBuilder curModule = m_moduleBuilderList[i]; 350ModuleBuilder moduleBuilder = m_moduleBuilderList[i]; 380internal ModuleBuilder FindModuleWithFileName(String strFileName) 386ModuleBuilder moduleBuilder = m_moduleBuilderList[i]; 402internal ModuleBuilder FindModuleWithName(String strName) 408ModuleBuilder moduleBuilder = m_moduleBuilderList[i]; 466internal List<ModuleBuilder> m_moduleBuilderList; 498internal ModuleBuilder m_entryPointModule;
system\reflection\emit\cominterfaces.cs (1)
203[TypeLibImportClassAttribute(typeof(System.Reflection.Emit.ModuleBuilder))]
system\reflection\emit\constructorbuilder.cs (3)
38Type[] parameterTypes, Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers, ModuleBuilder mod, TypeBuilder type) 56Type[] parameterTypes, ModuleBuilder mod, TypeBuilder type) : 74internal ModuleBuilder GetModuleBuilder()
system\reflection\emit\customattributebuilder.cs (3)
530internal void CreateCustomAttribute(ModuleBuilder mod, int tkOwner) 543internal int PrepareCreateCustomAttributeToDisk(ModuleBuilder mod) 552internal void CreateCustomAttribute(ModuleBuilder mod, int tkOwner, int tkAttrib, bool toDisk)
system\reflection\emit\dynamicmethod.cs (2)
448ModuleBuilder mb = m as ModuleBuilder;
system\reflection\emit\enumbuilder.cs (1)
408ModuleBuilder module) // module containing this type
system\reflection\emit\eventbuilder.cs (2)
42ModuleBuilder mod, // the module containing this EventBuilder 168private ModuleBuilder m_module;
system\reflection\emit\fieldbuilder.cs (5)
77ModuleBuilder.SetFieldRVAContent(m_typeBuilder.GetModuleBuilder().GetNativeHandle(), m_tkField.Token, data, size); 237ModuleBuilder module = m_typeBuilder.Module as ModuleBuilder; 254ModuleBuilder module = m_typeBuilder.Module as ModuleBuilder;
system\reflection\emit\ilgenerator.cs (14)
225return ((ModuleBuilder)m_methodBuilder.Module).GetMethodTokenInternal(method, optionalParameterTypes, useMethodDef); 239return ((ModuleBuilder)m_methodBuilder.Module).GetMemberRefSignature(call, returnType, parameterTypes, optionalParameterTypes, cGenericParameters); 532ModuleBuilder modBuilder = (ModuleBuilder) m_methodBuilder.Module; 568ModuleBuilder modBuilder = (ModuleBuilder) m_methodBuilder.Module; 651ModuleBuilder modBuilder = (ModuleBuilder)m_methodBuilder.Module; 731ModuleBuilder modBuilder = (ModuleBuilder) m_methodBuilder.Module; 840ModuleBuilder modBuilder = (ModuleBuilder) m_methodBuilder.Module; 854ModuleBuilder modBuilder = (ModuleBuilder) m_methodBuilder.Module;
system\reflection\emit\localbuilder.cs (2)
70ModuleBuilder dynMod; 81dynMod = (ModuleBuilder) methodBuilder.Module;
system\reflection\emit\methodbuilder.cs (11)
33private ModuleBuilder m_module; 73Type returnType, Type[] parameterTypes, ModuleBuilder mod, TypeBuilder type, bool bIsGlobalMethod) 81ModuleBuilder mod, TypeBuilder type, bool bIsGlobalMethod) 92ModuleBuilder mod, TypeBuilder type, bool bIsGlobalMethod) 221ModuleBuilder dynMod = (ModuleBuilder) m_module; 478internal ModuleBuilder GetModuleBuilder() 907ModuleBuilder dynMod = (ModuleBuilder) m_module; 1188((ModuleBuilder)m_module).GetConstructorToken(con).Token, 1205customBuilder.CreateCustomAttribute((ModuleBuilder)m_module, MetadataTokenInternal);
system\reflection\emit\methodrental.cs (2)
64ModuleBuilder mb = module as ModuleBuilder;
system\reflection\emit\modulebuilder.cs (7)
608ModuleBuilder.SetModuleName(GetNativeHandle(), name); 649ModuleBuilder mb = m as ModuleBuilder; 963List<ModuleBuilder> modList; 969ModuleBuilder mBuilder = modList[i]; 1754ModuleBuilder refedModuleBuilder = refedModule as ModuleBuilder;
system\reflection\emit\modulebuilderdata.cs (2)
29internal ModuleBuilderData(ModuleBuilder module, String strModuleName, String strFileName, int tkFile) 102internal ModuleBuilder m_module;
system\reflection\emit\parameterbuilder.cs (2)
78((ModuleBuilder )m_methodBuilder.GetModule()).GetConstructorToken(con).Token, 92customBuilder.CreateCustomAttribute((ModuleBuilder) (m_methodBuilder .GetModule()), m_pdToken.Token);
system\reflection\emit\propertybuilder.cs (2)
43ModuleBuilder mod, // the module containing this PropertyBuilder 299private ModuleBuilder m_moduleBuilder;
system\reflection\emit\signaturehelper.cs (2)
214private ModuleBuilder m_module; 258m_module = mod as ModuleBuilder;
system\reflection\emit\signaturetoken.cs (2)
29internal ModuleBuilder m_moduleBuilder; 31internal SignatureToken(int str, ModuleBuilder mod) {
system\reflection\emit\symbolmethod.cs (3)
20private ModuleBuilder m_module; 32internal SymbolMethod(ModuleBuilder mod, MethodToken token, Type arrayClass, String methodName, 72internal MethodToken GetToken(ModuleBuilder mod)
system\reflection\emit\typebuilder.cs (11)
81public void Bake(ModuleBuilder module, int token) 232internal static void DefineCustomAttribute(ModuleBuilder module, int tkAssociate, int tkConstructor, 407internal static unsafe void SetConstantValue(ModuleBuilder module, int tk, Type destType, Object value) 533private ModuleBuilder m_module; 563internal TypeBuilder(ModuleBuilder module) 567m_module = (ModuleBuilder)module; 607ModuleBuilder module, 616private void Init(String fullname, TypeAttributes attr, Type parent, Type[] interfaces, ModuleBuilder module, 977internal ModuleBuilder GetModuleBuilder() 2605TypeBuilder.DefineCustomAttribute(m_module, m_tdType.Token, ((ModuleBuilder)m_module).GetConstructorToken(con).Token, 2616customBuilder.CreateCustomAttribute((ModuleBuilder)m_module, m_tdType.Token);
system\runtime\interopservices\marshal.cs (2)
1042ModuleBuilder mb = m as ModuleBuilder;
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (2)
22public EventProviderWriter( ModuleBuilder OutputModule, String strDestTypeName, Type EventItfType, Type SrcItfType, Type SinkHelperType ) 768private ModuleBuilder m_OutputModule;
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (2)
17public EventSinkHelperWriter( ModuleBuilder OutputModule, Type InputType, Type EventItfType ) 296private ModuleBuilder m_OutputModule;
system\runtime\interopservices\tceadaptergen\tceadaptergenerator.cs (3)
16public void Process(ModuleBuilder ModBldr, ArrayList EventItfList) 59internal static TypeBuilder DefineUniqueType(String strInitFullName, TypeAttributes attrs, Type BaseType, Type[] aInterfaceTypes, ModuleBuilder mb) 137private ModuleBuilder m_Module = null;
system\runtime\interopservices\typelibconverter.cs (4)
126ModuleBuilder modBldr = asmBldr.DefineDynamicModule(strNonQualifiedAsmFileName, strNonQualifiedAsmFileName); 353private static void UpdateComTypesInAssembly(AssemblyBuilder asmBldr, ModuleBuilder modBldr) 502public TypeResolveHandler(ModuleBuilder mod, ITypeLibImporterNotifySink userSink) 603private ModuleBuilder m_Module;
System (1)
regex\system\text\regularexpressions\RegexCompiler.cs (1)
3069private ModuleBuilder _module;
System.Activities (1)
System\Activities\Debugger\StateManager.cs (1)
447ModuleBuilder dynamicModule;
System.Core (2)
Microsoft\Scripting\Compiler\AssemblyGen.cs (1)
42private readonly ModuleBuilder _myModule;
Microsoft\Scripting\Compiler\SymbolDocumentGenerator.cs (1)
52result = ((ModuleBuilder)method.Module).DefineDocument(document.FileName, document.Language, document.LanguageVendor, SymbolGuids.DocumentType_Text);
System.Data.Entity (8)
System\Data\Objects\Internal\EntityProxyFactory.cs (8)
54private static Dictionary<Assembly, ModuleBuilder> s_ModuleBuilders = new Dictionary<Assembly, ModuleBuilder>(); 63private static ModuleBuilder GetDynamicModule(EntityType ospaceEntityType) 66ModuleBuilder moduleBuilder; 244ModuleBuilder moduleBuilder = GetDynamicModule(ospaceEntityType); 389private static EntityProxyTypeInfo BuildType(ModuleBuilder moduleBuilder, ClrEntityType ospaceEntityType) 618private ModuleBuilder _moduleBuilder; 662public Type CreateType(ModuleBuilder moduleBuilder)
System.Data.SqlXml (5)
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
834this.ilgen.Emit(opcode, ((ModuleBuilder) methBldr.GetModule()).GetMethodToken(meth).Token);
System\Xml\Xsl\IlGen\XmlILModule.cs (4)
31private static ModuleBuilder LREModule; // Module used to emit dynamic lightweight-reflection-emit (LRE) methods 80this.emitSymbols = ((ModuleBuilder) this.typeBldr.Module).GetSymWriter() != null; 108ModuleBuilder modBldr; 283symDoc = ((ModuleBuilder) this.typeBldr.Module).DefineDocument(fileName, LanguageGuid, VendorGuid, Guid.Empty);
System.ServiceModel (1)
System\ServiceModel\ComIntegration\EmitterCache.cs (1)
41ModuleBuilder DynamicModule;
System.Web (2)
Util\FactoryGenerator.cs (1)
67private ModuleBuilder _dynamicModule = null;
Util\FastPropertyAccessor.cs (1)
43private ModuleBuilder _dynamicModule = null;
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
258ModuleBuilder module;
System.Web.Mobile (1)
UI\MobileControls\FactoryGenerator.cs (1)
70private ModuleBuilder _dynamicModule = null;
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (2)
45private static ModuleBuilder moduleBuilder = null; 47private static ModuleBuilder ModuleBuilder {
System.Xml (5)
System\Xml\Serialization\CodeGenerator.cs (2)
1768static internal ModuleBuilder CreateModuleBuilder(AssemblyBuilder assemblyBuilder, string name) { 1774static internal TypeBuilder CreateTypeBuilder(ModuleBuilder moduleBuilder, string name, TypeAttributes attributes, Type parent, Type[] interfaces) {
System\Xml\Serialization\Compilation.cs (1)
470ModuleBuilder moduleBuilder = CodeGenerator.CreateModuleBuilder(assemblyBuilder, assemblyName);
System\Xml\Serialization\XmlSerializationILGen.cs (2)
33ModuleBuilder moduleBuilder; 59internal ModuleBuilder ModuleBuilder {