str = string.Join(",", arr.ToArray());
If you need to convert the List to a string [] before the string. Can do
Array.ConvertAll<int, string>(str.ToArray(), new Converter<int, string>(Convert.ToString));
So...
str = string.Join(",", Array.ConvertAll<int, string>(str.ToArray(), new Converter<int, string>(Convert.ToString)));
source
share