// returns 999 static int Main(string[] args) { foo f = new foo(); f.SetCount(1000); return(f.GetCount()); }
// returns 1234 static int Main(string[] args) { foo f = new foo(); f.z = 1234; return(f.z); }
// returns 684870 static int Main(string[] args) { foo f = new foo(); f.z = 1234; foo f2 = new foo(); f2.z = 555; return(f.z * f2.z); }
// 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 45 static int Main(string[] args) { int counter = 0; for (int i = 0; i < 10; ++i) { foo f = new foo(); f.z = i; counter += f.z; } return counter; }
// returns 45 static int Main(string[] args) { int counter = 0; for (int i = 0; i < 10; ++i) { foo f = new foo(); f.z = i; counter += f.z; } return(counter); }
// 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 1234 static int Main(string[] args) { foo f = new foo(); f.z = 1234; return f.z; }
// returns 999 static int Main(string[] args) { foo f = new foo(); f.SetCount(1000); return f.GetCount(); }
public bar() { m_foo = new foo(); m_foo.value = 42; }