title: Convert a list into a comma-separated string
body: <p>My code is as below:</p>
  
  <pre><code>public void ReadListItem()
  {
       List&lt;uint&gt; lst = new List&lt;uint&gt;() { 1, 2, 3, 4, 5 };
       string str = string.Empty;
       foreach (var item in lst)
           str = str + item + ",";
  
       str = str.Remove(str.Length - 1);
       Console.WriteLine(str);
  }
  </code></pre>
  
  <p>Output: <code>1,2,3,4,5</code></p>
  
  <p>What is the most simple way to convert the <code>List&lt;uint&gt;</code> into a comma-separated string?</p>