Convert List<string> items to string with separator

13/07/2017 13:21
public static string BuildStringFromList(List<string> list, string separator = ";")
{
   string separatedValues = string.Empty;
   if(list.Count > 0)
   separatedValues = list.Select(a => a.ToString()).Aggregate((i, j) => i + separator + j);
 
   return separatedValues;
}