List<string> list = new List<string>() { "A" , "B", "C", "D", "E" };
string commaSeparated = String.Join(",", list.ToArray());
The output will be like this:
This is an easy and clean way to create a delimiter separeated list of strings.
A,B,C,D,E
No comments:
Post a Comment