.NET Blog - Chris Frazier StyleBlog Gratia Blogis.Exposing Hidden Events- April 25, 2007 I recently ran into a neat little nugget of functionality in C with events. Normally in C when we define events we stop at something like this:public event EventHandler<MyEventArgs> MyEvent; The thing is, you can explicitly implement the add and remove accessors if you throw some curly braces into the mix. Why does this matter Imagine that you have a MainForm, and a usercontrol named ControlPanel. ControlPanel contains another usercontrol called hiddenControl that exposes an...http://weblogs.asp.net/cfrazier/archive/2007/04/25/exposing-hidden-events.aspx |