?
-
Hi to All,
Is there any trick for adding additional runtime info (for example a string)
to a delegate instance?
I would like to mimic the Java EventListener - EventListenerProxy,
PropertyListener - PropertyListenerProxy
semantics. I can replace the PropertyListener class with a multicast
delegate, let's say PropertyChangeDelegate.
The problem that PropertyListenerProxy should be also a delegate, but it has
an additional string property, which can be set by the subscriber, and
publisher can filter (or anything) by it.
Of course I can mechanically port the Java event handling semantics, but in
this case I can not use the high level
functionality which is out of the box with .NET multicastdelegate, and I
must reimplement it :-(
Any ideas?
Thx for answers
Is there any trick for adding additional runtime info (for example a string)
to a delegate instance?
I would like to mimic the Java EventListener - EventListenerProxy,
PropertyListener - PropertyListenerProxy
semantics. I can replace the PropertyListener class with a multicast
delegate, let's say PropertyChangeDelegate.
The problem that PropertyListenerProxy should be also a delegate, but it has
an additional string property, which can be set by the subscriber, and
publisher can filter (or anything) by it.
Of course I can mechanically port the Java event handling semantics, but in
this case I can not use the high level
functionality which is out of the box with .NET multicastdelegate, and I
must reimplement it :-(
Any ideas?
Thx for answers