Preserve array-based StringBuilder.AppendFormat expression trees

Proprietary

Group originally expanded StringBuilder.AppendFormat object values into an explicit array inside a proven expression-tree lambda before retargeting. Preserve the original params-array overload when .NET 9 span params would prevent compilation. Retain ordinary delegates, fixed/normal-array calls, named/generic arguments, comments and conditional snapshots.

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

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