Пример #1
0
 public static int Test(bool t)
 {
     Obj y = new Obj(0);
     Obj z = new Obj(0);
     Obj2 o = new Obj2(y);
     o.o = z;
     Test(t, y, z);
     return y.x+z.x;
 }
Пример #2
0
        public static int Test(bool t)
        {
            Obj  y = new Obj(0);
            Obj  z = new Obj(0);
            Obj2 o = new Obj2(y);

            o.o = z;
            Test(t, y, z);
            return(y.x + z.x);
        }