有一个LINQ等效的string.join的(字符串,字符串[])字符串、有一个、string、LINQ

由网友(萌哒哒i)分享简介:有没有什么办法对象的集合转换成一个新的使用LINQ的对象?Is there any way to convert a collection of objects into a single new object using LINQ?我想用这个在另一个的LINQ to SQL EX pression。I want...

有没有什么办法对象的集合转换成一个新的使用LINQ的对象?

Is there any way to convert a collection of objects into a single new object using LINQ?

我想用这个在另一个的LINQ to SQL EX pression。

I want to use this within another LINQ to SQL expression.

推荐答案

你为什么不使用的 的string.join 本身?

Why don't you use the string.Join itself?

string.Join("<br/>", collection.Select(e => e.TextProp).ToArray());
阅读全文

相关推荐

最新文章