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