Optimize LINQ Where().LongCount()

Proprietary

Replace .Where(predicate).LongCount() with .LongCount(predicate).

OpenRewrite.Recipes.CSharp.CodeQuality.Linq.OptimizeLinqWhereCountLong
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Linq.OptimizeLinqWhereCountLong

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.