Exemple #1
0
        //public delegate void fyield(ref foo z, ref foo copy);

        public static void invoke(ref foo x, foo copy
                                  //, fyield yield = null

                                  )
        {
            //x.i = 5;

            //yield(ref x, ref copy);

            //var z = new foo { i = 7 };

            //x = z;

            //            // TestByRefLdarg0.foo.invoke
            //this.BAAABtvDSTeJ_aFd4zNwqpA = function (ref$b, c, d)
            //{
            //  var e = new zwksn9vDSTeJ_aFd4zNwqpA(), f = new zwksn9vDSTeJ_aFd4zNwqpA();

            //  ref$b[0].i = 5;
            //  d.BwAABgIE_bjmWsjXYOfeq4g(ref$b, c);
            //  f = new zwksn9vDSTeJ_aFd4zNwqpA();
            //  f.i = 7;
            //  e = f;
            //  ref$b[0]=e;
            //};
        }
        //public delegate void fyield(ref foo z, ref foo copy);

        public static void invoke(ref foo x, foo copy
            //, fyield yield = null
            
            )
        {
            //x.i = 5;

            //yield(ref x, ref copy);

            //var z = new foo { i = 7 };

            //x = z;

            //            // TestByRefLdarg0.foo.invoke
            //this.BAAABtvDSTeJ_aFd4zNwqpA = function (ref$b, c, d)
            //{
            //  var e = new zwksn9vDSTeJ_aFd4zNwqpA(), f = new zwksn9vDSTeJ_aFd4zNwqpA();

            //  ref$b[0].i = 5;
            //  d.BwAABgIE_bjmWsjXYOfeq4g(ref$b, c);
            //  f = new zwksn9vDSTeJ_aFd4zNwqpA();
            //  f.i = 7;
            //  e = f;
            //  ref$b[0]=e;
            //};

        }
        static void Main(string[] args)
        {
            var z = new foo { i = 3 };

            //            { i = 3 }
            //{ i = 5 }
            //{ i = 7 }


            z.invoke();
        }
Exemple #4
0
        static void Main(string[] args)
        {
            var z = new foo {
                i = 3
            };

            //            { i = 3 }
            //{ i = 5 }
            //{ i = 7 }


            z.invoke();
        }