2 using System.Collections.Generic;
4 public class B : IDisposable
10 public void DoSomething ()
17 public static IEnumerable<int> Test ()
19 using (var b = new B ()) {
20 Action a = () => b.DoSomething ();
27 public static int Main ()
29 foreach (var e in Test ()) {
30 Console.WriteLine (e);