C# how to join a list with delim, e.g., List<string> strList;, then strList.Join(",")
<pre><code>List&lt;string&gt; strList = new List&lt;string&gt;();
strList.Add("a");
strList.Add("b");
// I want to do this: string joined = strList.Join(",");
// joined = "a,b"
</code></pre>

<p>Do I need to make an extension off of List or something like that? I suppose it could first check to see that the type is string, vs trying to concatenate a Book object, if I had List bookList</p>

<p>Thanks!</p>

<p>--- EDIT</p>

<p>To clarify, I was asking for an extension for <code>List&lt;string&gt;</code>.  sorry for the confusion!</p>
