convert string list to string c# code example
Example 1: c# list to string
List<string> names = new List<string>() { "John", "Anna", "Monica" };
string result = string.Join(",", names.ToArray());
Example 2: c# convert list to string
string combindedString = string.Join( ",", myList.ToArray() );
Example 3: c# build string out of list of strings
string.Join(", ", stringCollection); // "Value1, Value2, Value3
Example 4: c# list to string
using System.Linq;
string str = list.Aggregate((x, y) => x + ',' + y);