Skip to content

Breaking change: FileStream.Position is updated AFTER ReadAsync|WriteAsync completes #23858

Closed
@carlossanlop

Description

@carlossanlop

FileStream.Position is updated AFTER ReadAsync|WriteAsync completes

@adamsitnik described it in detail here: dotnet/runtime#50858

cc @jozkee

Version introduced

.NET 6.0 Preview 4

Old behavior

New behavior

Reason for change

Recommended action

We will write a blog post and will share good practices.

Category

  • [C] Core .NET libraries

Affected APIs

FileStream.ReadAsync and FileStream.WriteAsync.

Issue metadata

  • Issue type: breaking-change

Metadata

Metadata

Assignees

Labels

🏁 Release: .NET 6Issues and PRs for the .NET 6 releasebreaking-changeIndicates a .NET Core breaking change

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions