2 using System.Collections;
3 using System.Collections.Generic;
5 struct S : IDisposable, IEnumerable
11 public IEnumerator GetEnumerator ()
13 return new List<int>().GetEnumerator ();
19 public static void Main ()
25 using (var s = new S ())
32 using (S s = new S (), s2 = new S ())
39 using (S? s = new S ())
46 using (var ms = new System.IO.MemoryStream ())
48 Console.WriteLine ("a");
67 void Switch_1 (int arg)
87 void Switch_2 (int? arg)
102 void Switch_3 (string s)
126 void Switch_4 (string s)
152 void DoWhile (int arg)
177 Console.WriteLine ("aa");
236 void ForEach (int[] args)
245 void ForEach_2 (List<object> args)
255 void ForEach_3 (S args)
265 void ForEach_4 (int[,] args)