Use Array.Empty<T>() instead of new T[0]
ProprietaryUse Array.Empty<T>() instead of allocating empty arrays.
OpenRewrite. Recipes. CSharp. CodeQuality. Performance. UseArrayEmptymod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Performance. UseArrayEmptyInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.