예제 #1
0
 public static EmitGenerator GetEmitGenerator(this MethodBuilder builder)
 {
     Requires.NotNull(builder, "builder");
     var ilGen = builder.GetILGenerator();
     var emitGen = new EmitGenerator(ilGen);
     return emitGen;
 }
        public static EmitGenerator GetEmitGenerator(this ConstructorBuilder builder)
        {
            Requires.NotNull(builder, "builder");
            var ilGen   = builder.GetILGenerator();
            var emitGen = new EmitGenerator(ilGen);

            return(emitGen);
        }