I think that the cleanest way to create a comma-separated list of string values is simply:
string.Join<string>(",", stringEnumerable); Here is a full example:
IEnumerable<string> stringEnumerable= new List<string>(); stringList.Add("Comma"); stringList.Add("Separated"); string.Join<string>(",", stringEnumerable); There is no need to make a helper function, this is built into .NET 4.0 and above.