title: Mark strings as const inside loop body
body: <p>I have some code with a loop:</p>
  
  <pre><code>while(someVariable)
  {
      string url = "https://&lt;domain&gt;/&lt;page&gt;/etc..";
      var response = await _httpHandler.GetAsync(url);
      // do something ...
  }
  </code></pre>
  
  <p>I want to prevent the compiler from creating a new string object each loop iteration. What would be best - move the url outside of the loop, or simply mark is as const? (and is there a difference btw. the two?)</p>