Five common LINQ mistakes and how to fix them

from blog Just Some Code, | ↗ original
It’s easy to start working with LINQ to replace for, foreach, and other loops. With a handful of LINQ methods, we have our backs covered. But, often, we make some common mistakes when working with LINQ. Here are five common mistakes we make when working with LINQ for the first time and how to fix them. Mistake 1: Use Count instead of Any We...