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;
            }
示例#2
0
    public static bool test()
    {
        var obj = new VirtualCall();

        return(obj.method());
    }
示例#3
0
            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();
	}