Scott Baldridge
asked on
With linq select new list containing comma seperated list
Hello, I have a list of school objects that contain a list teacher objects from this I need to select a new object which contains the school-name, City, comma separated teacher-email
School
name
address
city
List<Teacher>
Teacher
name
email
grade
How can this be accomplished using Linq to query the list of schools?
School
name
address
city
List<Teacher>
Teacher
name
grade
How can this be accomplished using Linq to query the list of schools?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Both of these solutions meet the requirements of the question.
Open in new window
I know you can do it via Lynq but against a string array...Open in new window