public int SealedClassInterfaceMethod() { SealedClass aSealedClass = aSealedClassField; int x = 0; for (int i = 0; i < InnerIterationCount; i++) { x = aSealedClass.InterfaceMethod(); } return(x); }
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(); } } }
public void SetupSealedClassInterfaceMethod() => aSealedClassField = new SealedClass();