public void callMethodDirectly() { var c = new TestClassA() { work = 0 }; for (int i = 0; i < iterations; i++) { c.methodDoWork(); } }
void methodCallExternalDoWork(TestClassA testClassA) { testClassA.methodDoWork(); }
public static TestClassA staticFunctionCallDoWork(TestClassA testClassA) { testClassA.methodDoWork(); return(testClassA); }