title: Join together all items of a list in an output string in .NET
body: <p>How can I write a LINQ expression (or anything else) that selects an item from a List and join them together?</p>
  <h3>Example</h3>
  <pre><code>IList&lt;string&gt; data = new List&lt;string&gt;();
  
  data.Add(&quot;MyData1&quot;);
  data.Add(&quot;MyData2&quot;);
  
  string result = // Some LINQ query... I try data.Select(x =&gt; x + &quot;,&quot;);
  
  //result = &quot;MyData1, MyData2&quot;
  </code></pre>