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); }