In this post, we will do a quick review of LINQ operators Any() and All().
Question 1: Using LINQ, determine if any word in a list contains the substring “ei”.
Question 2: Using LINQ, return a grouped list of products only for categories that have at least one product that is out of stock.
In this case, we run any over a grouping as shown below:
Question 3: Determine if an array of numbers contains all odds.
Question 4: Using LINQ, return a grouped list of products only for categories that have all of their products in stock.