title: Pass generic method as parameter to another method
body: <p>This has been asked before (I think), but looking through the previous answers I still haven't been able to figure out what I need.</p>
  
  <p>Lets say I have a private method like:</p>
  
  <pre><code>private void GenericMethod&lt;T, U&gt;(T obj, U parm1)
  </code></pre>
  
  <p>Which I can use like so:</p>
  
  <pre><code>GenericMethod("test", 1);
  GenericMethod(42, "hello world!");
  GenericMethod(1.2345, "etc.");
  </code></pre>
  
  <p>How can I then pass my <code>GenericMethod</code> to another method so that I can then call it in that method in a similar way? e.g.:</p>
  
  <pre><code>AnotherMethod("something", GenericMethod);
  
  ...
  
  public void AnotherMethod(string parm1, Action&lt;what goes here?&gt; method)
  {
      method("test", 1);
      method(42, "hello world!");
      method(1.2345, "etc.");
  }
  </code></pre>
  
  <p>I just can't get my head around this!  What do I need to specify as the generic parameters to <code>Action</code> in <code>AnotherMethod</code>?!</p>