Use string.StartsWith instead of IndexOf comparison
ProprietaryReplace s.IndexOf(x) == 0 with s.StartsWith(x).
OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UseStringStartsWithmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UseStringStartsWithInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.