7 public static void Main ()
10 // initialise so no null errors
11 double [,] [] foo
= new double [1, 1] [];
12 foo
[0, 0] = new double [2];
16 bar
= (double [,] []) foo
.Clone ();
18 bar
= (double [,] []) ReturnArray ();
20 // compiles & works correctly
23 Console
.WriteLine (bar
[0, 0] [1].ToString ());
26 private static double [,] [] ReturnArray ()
28 // just creates a "useless", multi-dimensional jagged array
29 double [,] [] zoo
= new double [1, 1] [];
30 zoo
[0, 0] = new double [2];