3 namespace TestAttributesCollecting
12 partial void Foo<[A] T>(/*[A]*/ int p);
15 public partial class X
17 partial void Foo<T> (int p)
23 public partial class Y
31 public partial class Y
39 public static int Main ()
41 var m = typeof (X).GetMethod ("Foo", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
42 var x = m.GetCustomAttributes (true);
43 Console.WriteLine (x.Length);
47 var ga = m.GetGenericArguments ();
48 x = ga [0].GetCustomAttributes (false);
52 x = typeof (Y).GetMethod ("Foo", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetCustomAttributes (true);
53 Console.WriteLine (x.Length);