SyntaxFix
Write A Post
Hire A Developer
Questions
This expression should do what you want to achieve.
dataSource.StateList.Where(s => countryCodes.Contains(s.CountryCode))