Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
1 public event EventHandler<CancelEventArgs> ValidateControls;
Using Event Accessors makes this look a lot more like a property:
1 public event EventHandler<CancelEventArgs> ValidateControls
2 {
3 add
4 {
5
6 }
7 remove
8 {
9
10 }
11 }
This could be useful to ... hmmm, I'm not exactly sure if I would use it, but I imagine some people would.
FYI, this also works in .Net 1.1. Not sure about VB though.