问题描述
有没有办法使用 LINQ 将一组对象转换为单个新对象?
Is there any way to convert a collection of objects into a single new object using LINQ?
我想在另一个 LINQ to SQL 表达式中使用它.
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());