Browse by Tags
Sorry, but there are no more tags available to filter with.
-
-
Yes! You can. public class MyClass { private event EventHandler _somethingHappened; public event EventHandler SomethingHappened { add { _somethingHappened += value; } remove { _somethingHappened -= value; } } } -f. ref: http://spellcoder.com/blogs/bashmohandes...
-
-
Do you really know? It is a MulticastDelegate that only allow to add and remove handlers, so, it’s like calling many methods, at one time... -f. ref: http://blogs.msdn.com/ddietric/archive/2007/10/01/fun-with-events-and-delegates.aspx http://www.codeproject...
-
-
Everybody that is using events, know how to hook to them, simply by adding an handle to the event object, like event += handler. The opposite must be done too, when you are no longer needing them… event –= handler. This way, when the object is disposing...