Use default literal
ProprietarySimplify default(T) expressions to default. Note: in rare cases where the type cannot be inferred (e.g., overload resolution), manual review may be needed.
OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UseDefaultLiteralmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UseDefaultLiteralInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.