2 using System
.Reflection
;
4 public delegate long MyDelegate ();
14 event MyDelegate X
.Foo
{
26 public event MyDelegate Foo
;
28 public static int Main ()
30 MethodInfo o
= typeof (Y
).GetMethod ("X.add_Foo", BindingFlags
.NonPublic
| BindingFlags
.Instance
);
35 o
= typeof (Y
).GetMethod ("X.get_Prop", BindingFlags
.NonPublic
| BindingFlags
.Instance
);
39 Console
.WriteLine ("OK");