List <T>. Where Where does not appear in intellisense
I am reading a book by John Skeet and he offers a great example:
List<Product> products = Product.GetSampleProducts();
foreach (Product product in products.Where(p => p.Price > 10))
{
Console.WriteLine(product);
}
It seems pretty simple to me. But, when I try to do the same, "Where does not appear in intellisense." Am I missing something? It looks the same.
List<lead> prospects = GetAllProspects();
foreach (lead prospect in prospects)
{
}
+3