有一个LINQ等效的string.join的(字符串,字符串[]) [英] Is there a LINQ equivalent of string.Join(string, string[])
本文介绍了有一个LINQ等效的string.join的(字符串,字符串[])的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有什么办法对象的集合转换成一个新的使用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());
这篇关于有一个LINQ等效的string.join的(字符串,字符串[])的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文