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