c# string array join comma code example
Example 1: how to join array indexes with comma in c#
List<string> testList= new List<string>();
testList.Add("Apple");
testList.Add("Banana");
testList.Add("Mango");
testList.Add("Blue Berry");
testList.Add("Water Melon");
string JoinDataString = string.Join(",", testList.ToArray());
Example 2: c# join strings with comma
string[] myValues = new string[] { ... };
string csvString = string.Join(",", myValues);
string csvString = string.Join(",", value1, value2, value3, ...);