Use coalesce expression instead of 'if'
ProprietaryReplace if (x == null) x = y; with x ??= y.
OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UseCoalesceExpressionInsteadOfIfmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UseCoalesceExpressionInsteadOfIfInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.