title: help to convert java code to C#
body: <p>i was trying to get the C# version of the following java code snippet,</p>
  
  <pre><code>HttpURLConnection connection = (HttpURLConnection)url.openConnection();
  connection.setRequestProperty("Range", "bytes=1024-");
  </code></pre>
  
  <p>this is what i have so far</p>
  
  <pre><code> WebRequest request = WebRequest.Create(someUri);
   request.Headers.Add("Range", "bytes=1024-");
  </code></pre>
  
  <p>but it is not working,what is the right way for me go?</p>