public static int Main() { bar b = new bar(); b.getFoo().value = 37; return(0); }
// returns 4444 static int Main(string[] args) { bar b = new bar(); b.f = new foo(); b.f.count = 4444; return b.f.count; }
// returns 4444 static int Main(string[] args) { bar b = new bar(); b.f = new foo(); b.f.count = 4444; return(b.f.count); }
// returns 9999 static int Main(string[] args) { bar b = new bar(); foo f = new foo(); b.f = f; if(b.f == f) return 9999; else return -1; }
// returns 9999 static int Main(string[] args) { bar b = new bar(); foo f = new foo(); b.f = f; if (b.f == f) { return(9999); } else { return(-1); } }