2 using System
.Reflection
;
7 Assembly ass
= Assembly
.LoadFrom ("event-il.exe");
8 Type t
= ass
.GetType ("T");
9 EventInfo ev
= t
.GetEvent ("MyDo");
10 Console
.WriteLine (ev
.GetAddMethod ());
11 MethodInfo
[] others
= ev
.GetOtherMethods ();
12 for (int i
= 0; i
< others
.Length
; ++i
) {
13 Console
.WriteLine (others
[i
]);
15 if (others
.Length
!= 1)
17 Console
.WriteLine ("now with non-public, too:");
18 others
= ev
.GetOtherMethods (true);
19 for (int i
= 0; i
< others
.Length
; ++i
) {
20 Console
.WriteLine (others
[i
]);
22 if (others
.Length
!= 2)