2 using System
.Collections
.Generic
;
6 public static int Main ()
8 var fs
= new List
<Func
<int>> ();
10 foreach (int i
in new List
<int> () { 1, 2, 3 }
) {
15 foreach (var i
in fs
) {
17 Console
.WriteLine (i ());
23 var fs2
= new List
<Func
<char>> ();
25 foreach (var i
in fs2
) {
27 Console
.WriteLine (i ());
30 foreach (var i
in "abcd") {
35 foreach (var i
in fs2
) {
37 Console
.WriteLine (i ());