Skip to content

Reference to wrong parameter name "size": should be "count" #10895

@robertpba

Description

@robertpba

Type of issue

Typo

Description

Method Read(Byte[], Int32, Int32) is declared as:
public override int Read (byte[] buffer, int offset, int count);

However, in the following documentation, reference is made to parameter size. This should instead be count.

Instances where the wrong parameter name is being used:

  • size is less than 0.
  • size is greater than the length of buffer minus offset.
  • The Read operation reads as much data as is available, up to the number of bytes specified by the size parameter.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.net.sockets.networkstream.read?view=net-9.0#system-net-sockets-networkstream-read(system-byte()-system-int32-system-int32)

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Net.Sockets/NetworkStream.xml

Document Version Independent Id

b40c2ef4-b8a0-8de3-e71d-baf1aaae541b

Article author

@karelz


Associated WorkItem - 368782

Metadata

Metadata

Assignees

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions