summaryrefslogtreecommitdiff
path: root/csharp/test/Slice/structure/Client.cs
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-05-11 16:51:13 +0200
committerJose <jose@zeroc.com>2016-05-11 16:51:13 +0200
commit20ead35bcd15c258b00da6b1a16d26107f8dea8b (patch)
tree0aa99a82b9d56383c76c372fc1050dfd5493b4e9 /csharp/test/Slice/structure/Client.cs
parentFixed make install issue (diff)
downloadice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.tar.bz2
ice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.tar.xz
ice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.zip
CSharp mapping cleanup
- Remove code support for old ussuported frameworks (SILVERLIGHT, COMPACT, MONO) - Remove code support for deprecated collection mappings clr:collection
Diffstat (limited to 'csharp/test/Slice/structure/Client.cs')
-rw-r--r--csharp/test/Slice/structure/Client.cs15
1 files changed, 7 insertions, 8 deletions
diff --git a/csharp/test/Slice/structure/Client.cs b/csharp/test/Slice/structure/Client.cs
index 79aefd596d3..ca183624e32 100644
--- a/csharp/test/Slice/structure/Client.cs
+++ b/csharp/test/Slice/structure/Client.cs
@@ -8,7 +8,6 @@
// **********************************************************************
using System;
-using System.Diagnostics;
using System.Collections.Generic;
using Test;
@@ -18,7 +17,7 @@ public class Client
{
if(!b)
{
- throw new System.Exception();
+ throw new Exception();
}
}
@@ -33,10 +32,10 @@ public class Client
C def_cls = new C(5);
S1 def_s = new S1("name");
string[] def_ss = new string[]{ "one", "two", "three" };
- IntList def_il = new IntList();
- def_il.Add(1);
- def_il.Add(2);
- def_il.Add(3);
+ int[] def_il = new int[3];
+ def_il[0] = 1;
+ def_il[1] = 2;
+ def_il[2] = 3;
Dictionary<string, string> def_sd = new Dictionary<string, string>();
def_sd.Add("abc", "def");
Ice.ObjectPrx def_prx = communicator.stringToProxy("test");
@@ -147,11 +146,11 @@ public class Client
S2 v1, v2;
v1 = (S2)def_s2.Clone();
- v1.il = (IntList)def_s2.il.Clone();
+ v1.il = (int[])def_s2.il.Clone();
test(v1.Equals(def_s2));
v1 = (S2)def_s2.Clone();
- v1.il = new IntList();
+ v1.il = new int[3] { 0, 0, 0};
test(!v1.Equals(def_s2));
v1 = (S2)def_s2.Clone();