title: Delegate function error
body: <p>I have following code. dont have any clue why I am getting this error - Delegate Function doesnot take 1 arguments.</p>
  
  <p>I am implementing a global Response handler which will be called by saveral requests.</p>
  
  <p>Here is the HandleResponse function:</p>
  
  <pre><code>Response&lt;T&gt; HandleResponse&lt;T&gt;(Func&lt;Response&lt;T&gt;&gt; func)
  {
      try
      {
          Response &lt;T&gt; response = func();
          if(response != null)
          {
              return response;
          }
          else
          {
              //display response.message
              return default(Response&lt;T&gt;);
          }
      }
      catch(ConnectionException e)
      {
          // func = e.Message.ToString();
          Console.WriteLine(e.Message);
          return default(Response&lt;T&gt;);
      }
  }
  </code></pre>
  
  <p>And here is my Calling Function:  </p>
  
  <pre><code>Request.MyRequest request = new 
  Request.MyRequest()
  {
       param1= comment, param2 = users
  };
  
  SomeResponse response = HandleResponse&lt;SomeResponse&gt;(x =&gt; client.DoRequest(request, revision.Name, revision.RevisionNumber));
  </code></pre>
  
  <p>I am a C++ developer and very new to C#. I am not sure why I am getting this error. Please someone explain.</p>
  
  <p>Thanks in advance.</p>