2 using System
.Collections
;
6 string[] ABC
= { "A", "B", "C" }
;
7 string [,] EFGH
= { { "E", "F" }
, { "G", "H"}}
;
9 delegate string Foo ();
10 delegate void Bar (string s
);
12 public string Hello ()
15 foreach (string s
in ABC
){
16 Bar bar
= delegate (string t
) {
17 Console
.WriteLine (t
);
22 foreach (string s
in EFGH
){
23 Bar bar
= delegate (string t
) {
24 Console
.WriteLine (t
);
34 public static void Main ()
37 Console
.WriteLine (x
.Hello ());