I have a list of objects in the collection. Each object has a string property called Issue. I want to combine the problem with all elements of the collection and put them on one line. which is the cleanest way to do this with LINQ.
here is the manual way:
string issueList = ""; foreach (var item in collection) { if (!String.IsNullOrEmpty(item.Issue) { issueList = issueList + item.Issue + ", "; } }
leora
source share