I have the following
data.AppendFormat(\"{0},\",dataToAppend);
The problem with this is that I am using it in a loop and there will be a t
Use the following after the loop.
.TrimEnd(',')
or simply change to
string commaSeparatedList = input.Aggregate((a, x) => a + ", " + x)