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