Esempio n. 1
0
        public Type CreateType(Action<TypeGenerationContext> nestedClosure)
        {
            var bundle = new BuilderBundle
                                       {
                                           ModuleBuilder = module
                                       };

            var context = new TypeGenerationContext(this, () => bundle, nestedClosure);

            var type = new GeneratedType(bundle, context);

            var returnType = type.Create();

            return returnType;
        }
Esempio n. 2
0
        public Type CreateType(Action <TypeGenerationContext> nestedClosure)
        {
            var bundle = new BuilderBundle
            {
                ModuleBuilder = module
            };

            var context = new TypeGenerationContext(this, () => bundle, nestedClosure);

            var type = new GeneratedType(bundle, context);

            var returnType = type.Create();

            return(returnType);
        }
Esempio n. 3
0
 public GeneratedType(BuilderBundle bundle, TypeGenerationContext context)
 {
     this.bundle  = bundle;
     this.context = context;
 }
Esempio n. 4
0
 public GeneratedType(BuilderBundle bundle, TypeGenerationContext context)
 {
     this.bundle = bundle;
     this.context = context;
 }
Esempio n. 5
0
 public MethodBuilderBundle(BuilderBundle bundle, MethodBuilder builder)
 {
     this.builder  = builder;
     ModuleBuilder = bundle.ModuleBuilder;
 }
Esempio n. 6
0
 public MethodBuilderBundle(BuilderBundle bundle, MethodBuilder builder)
 {
     this.builder = builder;
     ModuleBuilder = bundle.ModuleBuilder;
 }