add ISafeSerializationData
[mcs.git] / tests / test-anon-29.cs
blobe912ad9a853b528bd1db1e5abf4d3e90099530cf
1 using System;
2 using System.Collections;
4 public class X
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 ()
14 Foo foo = delegate {
15 foreach (string s in ABC){
16 Bar bar = delegate (string t) {
17 Console.WriteLine (t);
19 bar (s);
22 foreach (string s in EFGH){
23 Bar bar = delegate (string t) {
24 Console.WriteLine (t);
26 bar (s);
29 return "Hello";
31 return foo ();
34 public static void Main ()
36 X x = new X ();
37 Console.WriteLine (x.Hello ());