Invoke current-domain callbacks directly

Proprietary

Replace resolved AppDomain.CurrentDomain.DoCallBack calls with synchronous Action invocation for inline lambdas/method groups and fresh CrossAppDomainDelegate constructions. Framework's current-domain implementation directly invokes the callback. Other domains, delegate values/nulls, commented removed syntax and conditional files are left unchanged. No domain creation, isolation or unloading behavior is changed.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UseDirectCurrentDomainCallback
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net3_0.UseDirectCurrentDomainCallback

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