how to take all items in array and join in c# code example
Example 1: c# join string array
var combined = String.Join(",", new String[]{"a","b"});
// a,b
Example 2: c# object list to joined string
using System.Linq
string.Join(",", people.Select(x => x.surname))