[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 65
  • Last Modified:

Linq help

I have a collection of Product IEnumerable<Product> products.
            How can i filter this collection with an IList<string> items using linq.
0
JRockFL
Asked:
JRockFL
1 Solution
 
Chris StanyonCommented:
Probably going to need more info here - your question isn't particularly clear.

Normally you'd filter your list with the Where() extension method, for example:

products.Where(p => p.Category == 'Food').ToList();
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now