title: LINQ to append to a StringBuilder from a String[]
body: <p>I've got a String array that I'm wanting to add to a string builder by way of LINQ.</p>
  
  <p>What I'm basically trying to say is "For each item in this array, append a line to this StringBuilder".</p>
  
  <p>I can do this quite easily using a foreach loop however the following code doesn't seem to do anything. What am I missing?</p>
  
  <pre><code>stringArray.Select(x =&gt; stringBuilder.AppendLine(x));
  </code></pre>
  
  <p>Where as this works:</p>
  
  <pre><code>foreach(String item in stringArray)
  {
    stringBuilder.AppendLine(item);
  }
  </code></pre>