Use EventArgs.Empty
ProprietaryReplace new EventArgs() with EventArgs.Empty. The static EventArgs.Empty field avoids unnecessary allocations.
OpenRewrite. Recipes. CSharp. CodeQuality. Style. UseEventArgsEmptymod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Style. UseEventArgsEmptyInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.