using System; using System.Runtime.Remoting; using rtest; public class bigclient { public static void Main(String[] args) { RemotingConfiguration.Configure("bigclient.exe.config"); // get proxy (object is server activated in singleton mode). bigobject obj = new bigobject(); // tricky tricky! bigobject obj2 = new bigobject(); // doesn't do what it looks like!!! obj.setx(5); Console.WriteLine(obj2.getx()); // obj and obj2 - same object! obj.addobj(obj2); Console.WriteLine(obj.getx()); Console.WriteLine(obj2.getx()); } } // compile with csc /r:bigobject.dll bigclient.cs