Remove reviewed modern constrained-region preparation

Proprietary

Remove resolved standalone RuntimeHelpers.PrepareConstrainedRegions() statements only after explicit review that every consumer uses modern .NET, where this BCL method is empty. Preserve try/finally, allocations, attributes and neighboring statements. Keep comments, embedded calls, unknown symbols and conditional snapshots. Standalone opt-in; never infer that Framework CER guarantees are unnecessary.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net5.RemoveReviewedConstrainedRegionPreparation

Optional

ModernOnlyConsumersReviewedBoolean

Confirm every consuming compilation, including linked/shared source consumers, uses the modern .NET 5+ BCL implementation and does not rely on Framework CER preparation. Missing project metadata is not proof; this explicit attestation is required even for standalone source.

mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net5.RemoveReviewedConstrainedRegionPreparation

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