a C# question# DotNet - 窗口里的风景
s*i
1 楼
Suppose you have a class (class1), with an event (e). Then you may add many
handlers (h1, h2, ...) like this:
class1.E+=h1;
class1.E+=h2;
.....
You may also remove some during run time like thisL
class1.E-=h1;
...
Now my question is : is there an easy way to find out all the handlers that
are associated with the class event?
handlers (h1, h2, ...) like this:
class1.E+=h1;
class1.E+=h2;
.....
You may also remove some during run time like thisL
class1.E-=h1;
...
Now my question is : is there an easy way to find out all the handlers that
are associated with the class event?