add ISafeSerializationData
[mcs.git] / tests / gtest-implicitarray-01.cs
blob66e9083015ca76d827941c99644f497ba49ab706
2 // Tests implicitly typed arrays
4 public class Test
6 static int Main ()
8 string[] array = new [] { "Foo", "Bar", "Baz" };
9 foreach (string s in array)
10 if (s.Length != 3)
11 return 1;
13 string[] s1 = new[] { null, "a", default (string) };
14 double[] s2 = new[] { 0, 1.0, 2 };
16 var a1 = new[] { null, "a", default (string) };
17 var a2 = new[] { 0, 1.0, 2 };
18 var a3 = new[] { new Test (), null };
19 var a4 = new[,] { { 1, 2, 3 }, { 4, 5, 6 } };
20 var a5 = new[] { default (object) };
21 var a6 = new[] { new [] { 1, 2, 3 }, new [] { 4, 5, 6 } };
23 const byte b = 100;
24 var a7 = new[] { b, 10, b, 999, b };
26 return 0;