The `DeflateStream.Flush()` implementation DOES have functionality on .net 10

Open
#12,755 1 comment 2 reactions 2 assignees View on GitHub

@gewarren is already working on this.

Since Jun 17, 2026.

Assessment

This issue has not been assessed yet.

Description

:pushpin: seQUESTered area-System.IO.Compression untriaged
Type of issue

Other (describe below)

Description

The documentation claims DeflateStream.Flush() has no functionality. The actual source code disagrees with what very much looks like an implementation that calls FlushBuffers() when compressing:

https://github.com/dotnet/runtime/blob/5eaa18a9f3398d54ba9b8c0974d88171663be892/src/libraries/System.IO.Compression/src/System/IO/Compression/DeflateZLib/DeflateStream.cs#L197

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.io.compression.deflatestream.flush?view=net-10.0

Content source URL

https://github.com/dotnet/dotnet-api-docs-temp/blob/live/xml/System.IO.Compression/DeflateStream.xml

Document Version Independent Id

29d985b1-155e-04b5-be13-201d0947559e

Platform Id

94f3b4d6-9c3c-4d04-bc2e-1debbe55ab55

Article author

@dotnet-bot


Associated WorkItem - 589897

Dominant language
C#
Stars
950
Forks
1.7k
Avg merge
3d 5h
Merged PRs (30d)
38

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/dotnet-api-docs

All issues in dotnet/dotnet-api-docs

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.