Elegant way of creating a comma seperated list, and removing trailing comma
<p>When I generate comman seperated lists, I hate how I have to chop off the trailing comma.</p>

<p>Is there a better way?  I do this fairly often so looking for opinions.</p>

<pre><code>for(int x = 0; x &lt; list.Count; x++)
{
  sb.Append(list[x].Name);
  sb.Append(",");
}

var result = sb.toString().Substring(0, result.length - 2);
</code></pre>
