Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joshi-kumar/5cfc2ad15a0ead7f1252c2dfcd93838f to your computer and use it in GitHub Desktop.
Save joshi-kumar/5cfc2ad15a0ead7f1252c2dfcd93838f to your computer and use it in GitHub Desktop.
using lambda (LINQ) find item in nested list (list under list)
query = query.Where(c => c.CustomerRoles.Select(cr => cr.SystemName).Contains(customerRole));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment