Example #1
0
 public void Ctor_2_2_RepeatILEmitGeneric()
 {
     //var ctor = Dynamic.CreateConstructorCaller<TargetClass>();
     for (int i = 0; i < repeats; i++)
     {
         CtorStore <TargetClass> .CallCtor();
     }
 }
Example #2
0
        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);
            }
        }