I have a list of String defined like this
List<String> lstHeaders = new List<string>(new String[]{"str","str1","str2"});
I a want a way to join all that elemenet with an specific format to get something like this
<td>str</td><td>str1</td><td>str2</td>
but get this just in online of code , something like this
"<th>"+lstHeaders.functionToGetFormated()+"</th>"
Using Linq and
String.Concat:Perhaps clearer with query syntax: