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