All pastes #478890 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-09 12:50 UTC
rendered paste body
namespace SandBox
{
    class Program
    {
        public static event EventHandler<EventArgs> myEvent;
        static void Main(string[] args)
        {
            myEvent +=new EventHandler<EventArgs>(ponk);

            if(myEvent != null)
                myEvent.Invoke(null, new EventArgs());
        }

        static void ponk(object sender, EventArgs e)
        {
            Console.WriteLine("yoko!");
        }
    }
}