Beispiel #1
0
 public static void TestSingleCast_3x()
 {
     BaseType TestBaseType = new DerivedType();
     for (int x = 0; x < Iterations; x++)
     {
         DerivedType TestDerivedType = (DerivedType)TestBaseType;
         TestDerivedType.TestDerivedMethod();
         TestDerivedType.TestDerivedMethod2();
         TestDerivedType.TestDerivedMethod3();
     }
 }
Beispiel #2
0
 public static void TestSingleCast_30x()
 {
     BaseType TestBaseType = new DerivedType();
     for (int x = 0; x < Iterations; x++)
     {
         DerivedType TestDerivedType = (DerivedType)TestBaseType;
         
         //Simulate 3 x 10 method calls on already-cast object
         for (int y = 0; y < 10; y++)
         {
             TestDerivedType.TestDerivedMethod();
             TestDerivedType.TestDerivedMethod2();
             TestDerivedType.TestDerivedMethod3();
         }
     }
 }