Exemple #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;
        }
Exemple #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);
        }
Exemple #3
0
 public GeneratedType(BuilderBundle bundle, TypeGenerationContext context)
 {
     this.bundle  = bundle;
     this.context = context;
 }
Exemple #4
0
 public GeneratedType(BuilderBundle bundle, TypeGenerationContext context)
 {
     this.bundle = bundle;
     this.context = context;
 }
Exemple #5
0
 public MethodBuilderBundle(BuilderBundle bundle, MethodBuilder builder)
 {
     this.builder  = builder;
     ModuleBuilder = bundle.ModuleBuilder;
 }
Exemple #6
0
 public MethodBuilderBundle(BuilderBundle bundle, MethodBuilder builder)
 {
     this.builder = builder;
     ModuleBuilder = bundle.ModuleBuilder;
 }