1 // Compiler options: -warnaserror
4 using System
.Reflection
;
17 public static int Main ()
19 foreach (var m
in typeof (X
).GetMethods (BindingFlags
.Instance
| BindingFlags
.NonPublic
| BindingFlags
.DeclaredOnly
)) {
20 Console
.WriteLine (m
.Name
);
21 Console
.WriteLine (m
.Attributes
);
22 if (m
.Attributes
!= (MethodAttributes
.Virtual
| MethodAttributes
.Family
| MethodAttributes
.HideBySig
))