Last Updated: September 29, 2021
·
59.34K
· 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";