Exemple #1
0
        static void Main(string[] args)
        {
            HandlesEventAttribute.BindEvents();

            // these two calls use standard events
            var p = Post.Ask();

            p.Edit("How do I add an event handler via Reflection?");

            // these two use the EventHandlerCollection
            p.Close("Off-topic");
            p.Delete();

            Console.ReadKey();
        }