Use a reviewed public offset fallback for a closed ILGenerator length diagnostic
ProprietaryAfter explicit CoreCLR runtime review, preserve the original m_length FieldInfo lookup/read and use public ILOffset only when that field is absent and a nonnull generator belongs to ILGenerator's own assembly. Match only the closed two-statement helper; preserve null/custom-generator failure paths, flags and input evaluation. Reject source shadows, conditional snapshots, other fields/calls/overloads and ref/generic helpers. Standalone, default off.
OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net10. UseReviewedILGeneratorOffsetFallbackOptional
Explicitly confirm review of deployed CoreCLR 8/9/10 runtime generator ILOffset implementations. A library target framework does not establish its runtime host. Default false; excludes Mono, Framework, AOT and future runtimes.
mod run . --recipe= OpenRewrite. Recipes. CSharp. Migration. Dotnet. Net10. UseReviewedILGeneratorOffsetFallbackInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.