list of string join 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))
var combined = String.Join(",", new String[]{"a","b"});
// a,b
using System.Linq
string.Join(",", people.Select(x => x.surname))