public static void Run()
        {
            DynamicMethod dm = Util.Compile("a=1+3;a=a*2;while (a > 0) { a = a-1; if (a < 4) continue; w(a); } w(0);", typeof(TestCall));

            TestCall call = new TestCall();

            DMCall d = (DMCall)dm.CreateDelegate(typeof(DMCall), call);

            d();
        }
Пример #2
0
        public static void Run()
        {
            DynamicMethod dm = Util.Compile("a=1+3;a=a*2;while (a > 0) { a = a-1; if (a < 4) continue; w(a); } w(0);", typeof(TestCall));

            TestCall call = new TestCall();

            DMCall d = (DMCall) dm.CreateDelegate(typeof(DMCall), call);

            d();
        }
        public static void Main(string[] args)
        {
//			TestOne.Run();
            TestTwo.Run();
//			TestOne.Run();
//			TestTwo.Run();
//			TestOne.Run();
//			TestTwo.Run();
            TestCall.Run();
//			TestPersist.Run();
//			TestCast.Run();
//			TestInvoke.Run();
            TestScope.Run();
        }