Skip to content

FileStream constructor documentation incorrectly states that bufferSize: 0 throws #13060

Description

@igor-mq-team

Describe the issue or suggestion

For FileStream(string, FileMode, FileAccess, FileShare, int, FileOptions),
the .NET 10 documentation says that bufferSize must be greater than zero
and that zero throws ArgumentOutOfRangeException.

The .NET 10 runtime source disagrees:

Therefore bufferSize: 0 is valid and disables the internal buffering strategy.
Please correct the parameter description and ArgumentOutOfRangeException documentation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-System.IOuntriagedNew issue has not been triaged by the area owner

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions