Search code examples
c#.netlinqlinq-to-sql

Is there a LINQ equivalent of string.Join(string, string[])


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

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


Solution

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

    string.Join("<br/>", collection.Select(e => e.TextProp));