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.
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:
https://github.com/dotnet/runtime/blob/release/10.0/src/libraries/System.Private.CoreLib/src/System/IO/Strategies/FileStreamHelpers.cs#L79-L82
https://github.com/dotnet/runtime/blob/release/10.0/src/libraries/System.Private.CoreLib/src/System/IO/Strategies/FileStreamHelpers.cs#L30-L31
Therefore bufferSize: 0 is valid and disables the internal buffering strategy.
Please correct the parameter description and ArgumentOutOfRangeException documentation.