title: How to log parameters from generic function
body: <p>Given the following code:</p>
  
  <pre><code>int result = Execute(() =&gt; Foo(1, 2));
  
  public int Foo(int x, int y)
  {
      return x + y;
  }
  
  public T Execute&lt;T&gt;(
      Func&lt;T&gt; function)
  {
      Console.Write(function.Method.Name + ": " + string.Join(", ", params));
      return function();
  }
  </code></pre>
  
  <p>Is it possible to get the parameters? So the output would read something like:</p>
  
  <p>"Foo: 1, 2"</p>