Tag Archives: list events

Use reflection to list a class’s events in C#

This example uses the following code to add some simple events to the Form1 class. // Make some events. public delegate int MyPublicDelegate(string index); public event MyPublicDelegate MyPublicEvent; private delegate int MyPrivateDelegate(string index); private event MyPrivateDelegate MyPrivateEvent; public virtual event … Continue reading

Posted in reflection | Tagged , , , , , , , , , | Leave a comment