c# list to string join code example
Example 1: c# list to string join
String.Join(" ", elements)
Example 2: c# list join
List names = new List() { "John", "Anna", "Monica" };
var result = String.Join(", ", names.ToArray());
String.Join(" ", elements)
List names = new List() { "John", "Anna", "Monica" };
var result = String.Join(", ", names.ToArray());