title: Can't pass func arguments within method
body: <p>I'm trying to pass a <code>Func&lt;TResponse, T1, T2&gt;</code> through to this method. I keep getting a syntax error for "method()" though. It says it needs two arguments which makes sense, but how do I pass it to the method? I've assigned them as T1 and T2.</p>
  
  <p>How can I make this return the TResponse as well?</p>
  
  <p>The way I'm calling it (the func I want to use to call the method).</p>
  
  <pre><code>_service.Count(fileDate (DateTime), cycle int));
  </code></pre>
  
  <p>What am I doing wrong here?</p>
  
  <pre><code>public TResponse ExecuteAndLog&lt;T1, T2,TResponse&gt;(Guid id, string Name, Func&lt;T1, T2, TResponse&gt; method) where TResponse : class
  {
      try
      {
          Log(id, Name);
          TResponse x = method();
          Log(id, Name);
      }
      catch (Exception ex)
      {
          Log(id, Name);
          throw;
      }
  }
  </code></pre>