.Net Linq - Join together all item of a List
Posted
by Melursus
on Stack Overflow
See other posts from Stack Overflow
or by Melursus
Published on 2010-04-21T03:33:39Z
Indexed on
2010/04/21
3:43 UTC
Read the original article
Hit count: 208
How can I write a Linq expression that select item from a List and join them together ?
Example
IList<string> data = new List<string>();
data.Add("MyData1");
data.Add("MyData2");
string result = //some linq query... I try data.Select(x => x + ",");
//result = "MyData1, MyData2"
© Stack Overflow or respective owner