Optimize LINQ Where().Last()
ProprietaryReplace items.Where(predicate).Last() with items.Last(predicate).
OpenRewrite. Recipes. CSharp. CodeQuality. Linq. OptimizeLinqWhereLastmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Linq. OptimizeLinqWhereLastInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.