Basically I have a list of objects. Let's call them meetings. Inside the meetings there is another list of objects. Let's call those participants. I want to return all meetings where a certain participant is in the list.
I want something like this:
meetings.Where(meeting => meeting.Participants.Name == "Test name").ToList();
Are you looking for
var result = meetings .Where(meeting => meeting .Participants .Any(participant => participant.Name == "Test name")) .ToList();