Hello,
Is it possible to find out how many methods are listening to a certain
event? For example, if a number of methods subscribed to a controls DragDrop
event using +=, can I find out how many methods in total are listening to the
DragDrop event of the control?
If I can't find out the exact number of methods listening to the DragDrop
event, can I somehow remove all listeners of that event at once? I tried
using m_Control.DragDrop = null, but the compiler says I'm only allowed to
use DragDrop with += or -=.
I read about GetInvocationList() but I only found examples of its usage on
custom delegates. Im not sure if/how it is applicable to a controls DragDrop
event.
Thanks for your help,
-Flack