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