public void Ctor_2_2_RepeatILEmitGeneric() { //var ctor = Dynamic.CreateConstructorCaller<TargetClass>(); for (int i = 0; i < repeats; i++) { CtorStore <TargetClass> .CallCtor(); } }
public void Ctor_2_1_RepeatILEmitType() { //var ctor = Dynamic.CreateConstructorCaller<TargetClass>(); var type = typeof(TargetClass); for (int i = 0; i < repeats; i++) { CtorStore.CallCtor(type); } }