Andrew,
You cannot get the invocation list of event in other class. Events are
metadata objects only and they are set of 2 or 3 methods - add, remove and
invoke. How the events are implemented internaly is up to the implementing
classl it might use private field, collection of event handlers
(System.Windows.Forms controls for example) or maybe some other weird
method.
Keep in mind that invication list belongs to the delegate not the event
itself.
--
HTH
Stoitcho Goutsev (100)
"Andrew Ducker" <an****@ducker.org.uk> wrote in message
news:11*********************@e56g2000cwe.googlegro ups.com...
I have a class with a DataTable built into it. Various places
subscribe to the DataTable.RowChanging event. I want to grab a list of
all the subscribers.
Normally I'd use GetInvocationList, but that only seems to work on
events that are defined in the same class. Events declared inside a
different class (even one inside the current one) won't let you use
that syntax.
Anyone got any ideas?
Thanks,
Andrew Ducker