Optimize LINQ Where().Any()
ProprietaryReplace items.Where(predicate).Any() with items.Any(predicate). Passing the predicate directly to Any avoids an intermediate iterator.
OpenRewrite. Recipes. CSharp. CodeQuality. Linq. OptimizeLinqWhereAnymod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Linq. OptimizeLinqWhereAnyInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.