예제 #1
0
        public int SealedClassInterfaceMethod()
        {
            SealedClass aSealedClass = aSealedClassField;

            int x = 0;

            for (int i = 0; i < InnerIterationCount; i++)
            {
                x = aSealedClass.InterfaceMethod();
            }

            return(x);
        }
예제 #2
0
        public static void SealedClassInterfaceMethod()
        {
            SealedClass aSealedClass = new SealedClass();

            foreach (var iteration in Benchmark.Iterations)
            {
                using (iteration.StartMeasurement())
                    for (int i = 0; i < Benchmark.InnerIterationCount; i++)
                    {
                        aSealedClass.InterfaceMethod();
                    }
            }
        }
예제 #3
0
 public void SetupSealedClassInterfaceMethod() => aSealedClassField = new SealedClass();