C# convert list to comma separated string
Last modified: June 28, 2021static void Main(string[] args)
{
var cities = new List<string>() {"Hong Kong", "London", "New York" };
var joinCities = String.Join(", ", cities);
var countries = new string[]{ "UK", "USA", "India" };
var joinCountries = String.Join(", ", countries);
}