c# string.join example
Example 1: c# list to string join
String.Join(" ", elements)
Example 2: c# object list to joined string
using System.Linq
string.Join(",", people.Select(x => x.surname))
String.Join(" ", elements)
using System.Linq
string.Join(",", people.Select(x => x.surname))