title: C# reference to loop variable
body: <p>Is it possible in C# to something like the following</p>
  
  <pre><code>foreach (ref string var in arr) {
      var = "new value";
  }
  </code></pre>
  
  <p>so that var variable was treated as reference and assigning to var would change an array element?</p>