Docs: Outdated note?

Created on 4 May 2018  Â·  2Comments  Â·  Source: dotnet/docs

Isn't this note outdated?
"You must close the NetworkStream when you are through sending and receiving data. Closing TcpClient does not release the NetworkStream."


Document Details

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

P2 doc-bug

All 2 comments

Could you clarify? What makes you think the note is outdated?

It looks like TCPClient.Close method disposes the NetworkStream :
https://referencesource.microsoft.com/#System/net/System/Net/Sockets/TCPClient.cs,e70aabe5304f5cb1

Also TcpClient.Close document states that "Calling this method will eventually result in the close of the associated Socket and will also close the associated NetworkStream that is used to send and receive data if one was created."

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gmatv picture gmatv  Â·  3Comments

stanuku picture stanuku  Â·  3Comments

FrancescoBonizzi picture FrancescoBonizzi  Â·  3Comments

skylerberg picture skylerberg  Â·  3Comments

ike86 picture ike86  Â·  3Comments