Use collection expression
ProprietaryReplace array/list creation with collection expressions (C# 12).
OpenRewrite. Recipes. CSharp. CodeQuality. Style. UseCollectionExpressionmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Style. UseCollectionExpressionInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.