Merging strings together with separator berween them in C#
<p>I needed to merge strings that are inside <code>List&lt;string&gt;</code> together into oneliner. I came up with simple solution but I am not sure if it's the best way to go. </p>

<p>First version with problematic <code>,</code> on string start:</p>

<pre><code>string benchmarkiUjemneDatyRazem = "";
foreach (string s in benchmarkiUjemne) {
    benchmarkiUjemneDatyRazem = benchmarkiUjemneDatyRazem + "," + s;
}
</code></pre>

<p>Second version (Linq power) but still with ` : </p>

<pre><code>string benchmarkiUjemneDatyRazem = benchmarkiUjemne.Aggregate("", (current, s) =&gt; current + "," + s);
</code></pre>

<p>Working version without <code>,</code> but amount of lines makes some pain in later reading it:</p>

<pre><code>   int b = 0;
   string benchmarkiUjemneDatyRazem = "";
   foreach (string s in benchmarkiUjemne) {
       if (b == 0) {
          b = 1;
          benchmarkiUjemneDatyRazem = s;
          continue;
       }
       benchmarkiUjemneDatyRazem = benchmarkiUjemneDatyRazem + "," + s;
  }
</code></pre>

<p>Final version that I came up with was based on Linq with Subsitute to first char:</p>

<pre><code>    string benchmarkiUjemneDatyRazem = benchmarkiUjemne.Aggregate("", (current, s) =&gt; current + "," + s).Substring(1);
</code></pre>

<p>Is this good approach to this problem ? Or there's better way to actually do it? Like using StringBuilder or so?</p>
