Convert List<string> to comma separated String

Muhammad Waseem
Become .NET Pro !
Feb 10, 2023

♉ In C# using String.Join method we can convert our List<string> to comma separated string.

♉ String.Join() is a static method of String class , which takes two parameters first is separator character and second IEnumerable<T>.

♉ Instead of comma you can use any separator of your choice.

If you want to help the author in growing

  1. Subscribe my Weekly .NET Newsletter of C#/.NET
  2. Follow me on LinkedIn/Twitter OR Clap at least 50 times.
  3. Get exclusive .NET Questions & Answers by becoming a Patron.
  4. Download my eBook at Gumroad that contains 30 .NET Tips.

--

--