Use ContainsKey instead of Keys.Contains
ProprietaryReplace .Keys.Contains(key) with .ContainsKey(key) on dictionaries for O(1) performance.
OpenRewrite. Recipes. CSharp. CodeQuality. Performance. UseContainsKeymod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Performance. UseContainsKeyInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.