Ejemplo n.º 1
0
        static CodeGenerator()
        {
            AppDomain       domain          = Thread.GetDomain();
            AssemblyBuilder assemblyBuilder = domain.DefineInternalDynamicAssembly(new AssemblyName
            {
                Name = "__MetadataTypes"
            }, AssemblyBuilderAccess.Run);

            CodeGenerator._module = assemblyBuilder.DefineDynamicModule("__MetadataTypesModule", false);
        }
Ejemplo n.º 2
0
        static CodeGenerator()
        {
            AppDomain    myDomain  = System.Threading.Thread.GetDomain();
            AssemblyName myAsmName = new AssemblyName();

            myAsmName.Name = "__MetadataTypes";

            AssemblyBuilder myAsmBuilder = myDomain.DefineInternalDynamicAssembly(myAsmName, AssemblyBuilderAccess.Run);

            _module = myAsmBuilder.DefineDynamicModule("__MetadataTypesModule", false);
        }