Answers for "c# linq objects that contained within list"

2

linq object list contains

using System.Linq;

bool exists = list.Any(x => x.surname == "Smith");
Posted by: Guest on August-03-2020
0

c# linq get list of objects based on another list

var filtered = listOfAllVenuses
                   .Where(x=>!listOfBlockedVenues.Any(y=>y.VenueId == x.Id));
Posted by: Guest on March-23-2020

Browse Popular Code Answers by Language