In C#, how can I create a dynamic method that can be used to handle an event?
Here is an event:
public event EventHandler<EventArgs> refresh;
Here is a method:
public void Test()
{
}
How can I dynamically create a method to handle the refresh event, such that the dynamic method calls the Test method?
The Test method above is an example of a method to be called.