static int Main() { MyProxy real_proxy = new MyProxy(new R1()); R1 o = (R1)real_proxy.GetTransparentProxy(); Dictionary <string, int> i; o.foo(out i); if (1 == i["One"]) { return(0); } return(1); }