summaryrefslogtreecommitdiff
path: root/csharp/test/Ice/slicing/objects/Client.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/test/Ice/slicing/objects/Client.cs')
-rw-r--r--csharp/test/Ice/slicing/objects/Client.cs16
1 files changed, 4 insertions, 12 deletions
diff --git a/csharp/test/Ice/slicing/objects/Client.cs b/csharp/test/Ice/slicing/objects/Client.cs
index a0bdc939c23..a89ce7c02e1 100644
--- a/csharp/test/Ice/slicing/objects/Client.cs
+++ b/csharp/test/Ice/slicing/objects/Client.cs
@@ -8,7 +8,7 @@
// **********************************************************************
using Test;
-using System.Diagnostics;
+using System;
public class Client
{
@@ -27,20 +27,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;
}
@@ -52,7 +44,7 @@ public class Client
}
catch(Ice.LocalException ex)
{
- System.Console.Error.WriteLine(ex);
+ Console.Error.WriteLine(ex);
status = 1;
}
}