Linq help

I have a collection of Product IEnumerable<Product> products.
            How can i filter this collection with an IList<string> items using linq.
LVL 8
JRockFLAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Chris StanyonConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.