diff options
Diffstat (limited to 'csharp/test/Ice/objects/Collocated.cs')
-rw-r--r-- | csharp/test/Ice/objects/Collocated.cs | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/csharp/test/Ice/objects/Collocated.cs b/csharp/test/Ice/objects/Collocated.cs index 82bc3dc8064..d401a85e47f 100644 --- a/csharp/test/Ice/objects/Collocated.cs +++ b/csharp/test/Ice/objects/Collocated.cs @@ -9,7 +9,6 @@ using Test; using System; -using System.Diagnostics; using System.Reflection; [assembly: CLSCompliant(true)] @@ -42,21 +41,12 @@ public class Client try { Ice.InitializationData data = new Ice.InitializationData(); -#if COMPACT - // - // When using Ice for .NET Compact Framework, we need to specify - // the assembly so that Ice can locate classes and exceptions. - // - data.properties = Ice.Util.createProperties(); - data.properties.setProperty("Ice.FactoryAssemblies", "collocated"); -#endif - communicator = Ice.Util.initialize(ref args, data); status = run(args, communicator); } - catch(System.Exception ex) + catch(Exception ex) { - System.Console.WriteLine(ex); + Console.WriteLine(ex); status = 1; } @@ -68,7 +58,7 @@ public class Client } catch(Ice.LocalException ex) { - System.Console.WriteLine(ex); + Console.WriteLine(ex); status = 1; } } |