Re: Event Invocation List
- From: "robinhoode" <robinhoode@xxxxxxxxx>
- Date: 28 Feb 2006 08:16:16 -0800
I was hoping to get the invocation list of an existing instance, after
the existing idiom:
swfObjectInstance.SomeEvent += new EventHandler(MyMethod);
then elsewhere:
Delegate[] invocationList =
swfObjectInstance.SomeEvent.GetInvocationList();
But this raises an error of CS0079.
Well.. I did a bit more research and it doesn't seem possible unless I:
1) Do what you've shown here, by creating my own EventHandler and
passing that on to the object
2) Deriving the class and handling it internally
If anyone has any alternatives, I'll be glad to hear them.
-Rob
.
- Follow-Ups:
- Re: Event Invocation List
- From: Jon Skeet [C# MVP]
- Re: Event Invocation List
- References:
- Event Invocation List
- From: robinhoode
- Re: Event Invocation List
- From: bobbychopra@xxxxxxxxx
- Event Invocation List
- Prev by Date: Re: Mini interface on the task bar
- Next by Date: Re: How to detect font size ( corrected )
- Previous by thread: Re: Event Invocation List
- Next by thread: Re: Event Invocation List
- Index(es):
Relevant Pages
|