Preserve TextWriter params-array override dispatch

Proprietary

Group originally expanded object-array Write/WriteLine format arguments for TextWriter receivers before retargeting. Preserve the original array-overload dispatch, receiver/argument evaluation and custom overrides when .NET 9 span params would choose another virtual overload. Leave fixed/normal-array calls, named/generic arguments, static or unrelated methods, comments and conditional snapshots unchanged.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.PreserveTextWriterParamsArrayDispatch
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net9.PreserveTextWriterParamsArrayDispatch

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.