title: C# Passing a method as a parameter to another method
body: <p>I have a method that is called when an exception occurs:</p>
  
  <pre><code>public void ErrorDBConcurrency(DBConcurrencyException e)
  {
      MessageBox.Show("You must refresh the datasource");
  }
  </code></pre>
  
  <p>What i would like to do is pass this function a method so if the user clicks Yes then the method is called e.g.</p>
  
  <pre><code>public void ErrorDBConcurrency(DBConcurrencyException e, something Method)
  {
      if (MessageBox.Show("You must refresh the datasource") == DialogResult.OK)
          Method();
  }
  </code></pre>
  
  <p>The Method may or may not have parameters, if this is the case i would like to pass them too.</p>
  
  <p>How can i acheive this?</p>