Where IN clause in LINQ [duplicate]

This expression should do what you want to achieve.

dataSource.StateList.Where(s => countryCodes.Contains(s.CountryCode))

Leave a Comment