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