Is it always better to use Any() over Count() in #dotnet? I analyze #CA1827 and benchmark the performance of Count(), Any(), and LongCount() for checking if an IEnumerable<T> contains items. The results will surprise you! Check it out!
dotnettips.wordpress.com/2025/03/26/m...
#MVPBuzz #dotnet10
Is it always better to use Any() over Count() in #dotnet? I analyze #CA1827 and benchmark the performance of Count(), Any(), and LongCount() for checking if an IEnumerable<T> contains items. The results will surprise you! Check it out!
dotnettips.wordpress.com/2025/03/26/m...
#MVPBuzz #dotnet10
Is it always better to use Any() over Count() in #dotnet? I analyze #CA1827 and benchmark the performance of Count(), Any(), and LongCount() for checking if an IEnumerable<T> contains items. The results will surprise you! Check it out!
dotnettips.wordpress.com/2025/03/26/m...
#MVPBuzz #dotnet10
Is it always better to use Any() over Count() in #dotnet? I analyze #CA1827 and benchmark the performance of Count(), Any(), and LongCount() for checking if an IEnumerable<T> contains items. The results might surprise you! Check it out!
dotnettips.wordpress.com/2025/03/26/m...
#MVPBuzz