c# list to string separated by comma code example
Example 1: c# list to string comma separated
IList<string> strings = new List<string>{"1","2","testing"};
string joined = string.Join(",", strings);
Example 2: convert string list to comma separated string c#
string[] animals = { "Cat", "Alligator", "Fox", "Donkey" };
var str = String.Join(",", animals);