title: HttpWebRequest BeginGetResponse Action delegate lambda expression as parameter
body: <p>I have this code:</p>
  
  <pre><code>   protected static string MakeGetRequest(string url, Action&lt;IAsyncResult&gt; callback)
      {
          var request = (HttpWebRequest)HttpWebRequest.Create(new Uri(url));
          request.BeginGetResponse(callback, null);            
      }
  </code></pre>
  
  <p>This will not compile, I get an error on the BeginGetResponse line:</p>
  
  <p>cannot convert from 'System.Action' to 'System.AsyncCallback'</p>
  
  <p>I want to pass in a function as my AsyncCallback.</p>
  
  <p>Please advise.</p>