title: Pass a method as a parameter
body: <p>I want to be able to pass a method as a parameter.</p>
  
  <p>eg..</p>
  
  <pre><code>//really dodgy code
  public void PassMeAMethod(string text, Method method)
  {
    DoSomething(text);
    // call the method
    //method1();
    Foo();
  }
  
  public void methodA()
  {
    //Do stuff
  }
  
  
  public void methodB()
  {
    //Do stuff
  }
  
  public void Test()
  {
    PassMeAMethod("calling methodA", methodA)
    PassMeAMethod("calling methodB", methodB)
  }
  </code></pre>
  
  <p>How can I do this?</p>