Use LINQ to concatenate multiple rows into single row (CSV property)

That’s the GroupBy operator. Are you using LINQ to Objects? Here’s an example: using System; using System.Collections.Generic; using System.Linq; public class Test { static void Main() { var users = new[] { new { User=”Bob”, Hobby=”Football” }, new { User=”Bob”, Hobby=”Golf” }, new { User=”Bob”, Hobby=”Tennis” }, new { User=”Sue”, Hobby=”Sleeping” }, new { User=”Sue”, … Read more