Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / tests / anonarray.2.cs
1 using System;
2 using System.Collections.Generic;
3
4 class Program {
5   public static void Main()
6   {
7     // this form of initialisation causes a crash when I try
8     // to iterate through the items.
9     IEnumerable<IEnumerable<string>> table 
10       = new string[][] { 
11            new string[] { "1a", "1b" },
12            new string[] { "2a", "2b" }
13         };
14
15     foreach (IEnumerable<string> row in table) {
16       foreach (string cell in row) {
17         Console.Write("{0}  ", cell);
18       }
19       Console.WriteLine();
20     }
21   }
22 }