Exemplo n.º 1
0
    public static void SealedClassInterfaceMethod()
    {
        SealedClass aSealedClass = new SealedClass();

        foreach (var iteration in Benchmark.Iterations)
        {
            using (iteration.StartMeasurement())
                aSealedClass.InterfaceMethod();
        }
    }
Exemplo n.º 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();
                }
        }
    }