1 // Compiler options: -r:../class/lib/net_4_5/Mono.Cecil.dll
4 using System.Threading.Tasks;
20 async void I<C>.Foo (C c)
25 public static void Main ()
27 var assembly = AssemblyDefinition.ReadAssembly (typeof (X).Assembly.Location);
28 foreach (var t in assembly.MainModule.Types) {
33 static void PrintType (TypeDefinition td, int indent)
35 if (td.IsNested && !string.IsNullOrEmpty (td.Namespace))
36 throw new ApplicationException ("BROKEN NESTED TYPE:");
37 Console.WriteLine ("{2} Namespace: {0} Name: {1}", td.Namespace, td.Name, new string (' ', indent * 4));
38 foreach (var tn in td.NestedTypes)
39 PrintType (tn, indent + 1);