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