3 namespace ConsoleApplication1
11 public partial class X
19 public partial class Y
27 public partial class Y
37 var x = typeof (X).GetMethod ("Foo", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetCustomAttributes (true);
38 Console.WriteLine (x.Length);
42 x = typeof (Y).GetMethod ("Foo", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetCustomAttributes (true);
43 Console.WriteLine (x.Length);