Is there a way to create a dictionary of event objects How
This is what I have:
public delegate void MyDelegate();
This is the type of thing I would like:
private Dictionary<Object, event MyDelegate> listeners;
Is something like that possible I know I could use a List<MyDelegate> instead of an event but I would rather use the event for obvious reasons.
Thanks.

Dictionary of events?
Kai Huener
Gaurav Srivastava
try Dictionary<Object, MyDelegate>.
Regards,
Bernd
Darrell Snow
No. It holds a list. A delegate is implicitly derived from MultiCast delegate. Therefore you should be able to call += new EventHandler(...) several times on every entry of your dictionary. Try it.
Best regards,
Bernd
leandro Oliveira
Vinny Davi
Guy_Dupre
That you state that there is a bug a performance issues seems to suggest that it is possible to do the above, however I cannot figure out the syntax that will allow it to compile.