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";
Written by Ion D. Filho
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#.net
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#