Ice.Communicator communicator = Ice.Util.initialize(); string proxyString = "myObject:tcp -h localhost -p 10000"; MyObjectPrx myObject = MyObjectPrxHelper.checkedCast(communicator.stringToProxy(proxyString));
Ice.Communicator communicator = Ice.Util.initialize(); string proxyString = "myObject:udp -h localhost -p 10000"; Ice.ObjectPrx proxy = communicator.stringToProxy(proxyString);In this example, we are initializing a communicator and then converting a string representation of a UDP proxy into an actual proxy object. We are not specifying the interface for the proxy object, so we are using the more generic ObjectPrx type. The stringToProxy method is part of the Ice package library for C#.