Use Count/Length property instead of Count()
ProprietaryReplace collection.Count() with collection.Count when available.
OpenRewrite. Recipes. CSharp. CodeQuality. Performance. UseCountPropertymod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Performance. UseCountPropertyInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.