Skip to content

FileStream.Position breaking change documentation should be deleted #40245

Closed
@mriehm

Description

@mriehm

Describe the issue or suggestion

This article describes a breaking change that supposedly occurs in .NET 6:
https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/filestream-position-updates-after-readasync-writeasync-completion

However, it seems that breaking change was reverted before .NET 6 was released, so it is misleading to continue to list that breaking change. I think that article should be deleted.

The supposed breaking change is that FileStream.Position is now updated only after ReadAsync/WriteAsync completes in .NET 6. That breaking change article was drafted on May 5, 2021, but then there was a PR entitled 'Update position before ReadAsync starts, but fix it after incomplete read' on July 29, 2021. So, I think the breaking change article was just not revisited after this later PR.

I've run the sample code provided in the breaking change article on .NET 8, both Windows and WSL, and it matches the pre-.NET 6 behavior described in that article, not the .NET 6+ behavior described.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.


Associated WorkItem - 250223

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions