Esempio n. 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;
 }
Esempio n. 2
0
 public Obj2(Obj o)
 {
     this.o = o;
 }
Esempio n. 3
0
 public static void Test(bool t, Obj y, Obj z)
 {
     y.x = 5;
     z.x = 7;
     (t ? y : z).x = 57;
 }