namespace SandBox { class Program { public static event EventHandler myEvent; static void Main(string[] args) { myEvent +=new EventHandler(ponk); if(myEvent != null) myEvent.Invoke(null, new EventArgs()); } static void ponk(object sender, EventArgs e) { Console.WriteLine("yoko!"); } } }