I have a List of Activity. In the Activity class is an ID property (a Guid for arguments sake). I want to check if this list has an Activity in it with a Guid I have. Rather
foreach(var activity in ActivityList.Where(p=>p.Id == GuidToCompare)) { // Code here }