Using LINQ or even Joinin this case will be redundant. Concatwill do the trick perfectly:
string s = "alphabets";
var list = new List<string> { "a", "b", "c" };
string result = s + string.Concat(list);
(Note: if you are not using .NET4, you need to use it instead string.Concat(list.ToArray()). An overload Concatthat accepts IEnumerable<T>does not exist in earlier versions.)
Lukeh source
share