How to fix this error: "MyEvent + = expected"?
5 answers
If you are trying to use an event from another class, you need to understand the difference between events and delegates. The event simply encapsulates the "subscribe" and "unsubscribe" aspects, not "raise the event". (In fact, in IL, you can have a member for "raise an event", but C # doesn't support it.)
See my article on Events and Delegates for details .
+1
source to share
Check out Chris Sells .NET Delegates: C # Bedtime Story for a great guide to delegates and events. Informative and quite entertaining.
0
source to share