[System] Throw PlatformNotSupportedException if NetworkInformation.NetworkChange...
[mono-project.git] / mcs / tests / gtest-iter-30.cs
blob192c82be79d7d8a46062c07e01f1000e7edd378b
1 using System;
2 using System.Collections.Generic;
4 public class Program
6 public static void Main ()
8 foreach (var x in new M ().Test ()) {
9 Console.WriteLine (x);
14 class M
16 public IEnumerable<int> Test ()
18 Action a = delegate {
19 int k = 0;
20 Action x = delegate {
21 Console.WriteLine (this);
22 Console.WriteLine (k);
25 x ();
26 Console.WriteLine (this);
29 a ();
31 yield return 1;