Use string.IsNullOrEmpty method
ProprietaryReplace s == null || s == "" and s == null || s.Length == 0 with string.IsNullOrEmpty(s).
OpenRewrite. Recipes. CSharp. CodeQuality. Style. UseStringIsNullOrEmptymod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Style. UseStringIsNullOrEmptyInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.