title: Please help me to convert this java code to C#
body: <p>I'm using Htmlunit in my C# project, but I cannot convert this code in java to C#</p>
  
  <pre><code>webClient.setWebConnection(new HttpWebConnection(webClient) {
      public WebResponse getResponse(WebRequestSettings settings) throws IOException {
          System.out.println(settings.getUrl());
          return super.getResponse(settings);
      }
  });
  </code></pre>
  
  <p>Can anyone kindly convert it to C# ?
  Thank in advance</p>