list of strings to comma separated string c# 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 comma separated string to array c#
string fruit = "Apple,Banana,Orange,Strawberry";
string[] split = fruit.Split(',');