diff options
Diffstat (limited to 'csharp/test/Ice/objects/Client.cs')
-rw-r--r-- | csharp/test/Ice/objects/Client.cs | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/csharp/test/Ice/objects/Client.cs b/csharp/test/Ice/objects/Client.cs index 6251c9ec06c..805670012c6 100644 --- a/csharp/test/Ice/objects/Client.cs +++ b/csharp/test/Ice/objects/Client.cs @@ -9,7 +9,6 @@ using Test; using System; -using System.Diagnostics; using System.Reflection; [assembly: CLSCompliant(true)] @@ -35,20 +34,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", "client"); -#endif communicator = Ice.Util.initialize(ref args, data); status = run(args, communicator); } - catch(System.Exception ex) + catch(Exception ex) { - System.Console.Error.WriteLine(ex); + Console.Error.WriteLine(ex); status = 1; } @@ -60,7 +51,7 @@ public class Client } catch(Ice.LocalException ex) { - System.Console.Error.WriteLine(ex); + Console.Error.WriteLine(ex); status = 1; } } |