public void DoTest(int loops) { BaseVirtualClass c = new VirtualCall(); int v = 0; for (int i = 0; i < loops; ++i) { v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); } this.Value = v; }
public static bool test() { var obj = new VirtualCall(); return(obj.method()); }
public void DoTest(int loops) { BaseVirtualClass c = new VirtualCall(); int v = 0; for (int i = 0; i < loops; ++i) { v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); v = c.Test(v); } this.Value = v; }
public static bool test() { var obj = new VirtualCall(); return obj.method(); }