Exemplo 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);
        }
Exemplo n.º 2
0
 public GeneratedType(BuilderBundle bundle, TypeGenerationContext context)
 {
     this.bundle  = bundle;
     this.context = context;
 }