Last Updated: September 29, 2021
·
57.81K
· iondrimba

Convert simple int array to string C#

int[] array = {1,2,3,4,5};

string ids = String.Join(",", array.Select(p=>p.ToString()).ToArray());

//output  = "1,2,3,4,5";