This project has moved and is read-only. For the latest updates, please go here.


Add EventHandler.Raise Extension


The EventHandler.Raise and EventHandler.Raise<> extension methods will make it simpler to invoke an Event within C#.
Traditionally, when invoking/raising an event in C# you need to check if it's null first, then raise it if it isn't. This extension will do the null checking for you.
You will be able to invoke/raise events like this:
this.Click.Raise(this, EventArgs.Empty);
Closed Jul 17, 2008 at 5:01 PM by crpietschmann
This has been implemented.