Preserve legacy full-array reads on closed GZip streams

Proprietary

After reviewing the legacy positive-length read contract, restore fill-or-EOF behavior for ignored GZipStream.Read(buffer, 0, buffer.Length) calls on the same bound local or parameter byte array. Preserve a zero-length call, short EOF, evaluation and resource lifetime. Require exact nonescaping using resources; leave assigned reads, fields, captures, async, comments and conditional snapshots unchanged. Standalone; no new API or EOF exception policy.

OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.PreserveClosedGZipArrayReads

Optional

LegacyReadContractConfirmedBoolean

Confirm the consuming compilations require pre-.NET 6 fill-or-EOF behavior for positive lengths. Zero-length reads retain the runtime's existing single-call behavior.

mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.Net6.PreserveClosedGZipArrayReads

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