TcpListener should implement IDisposable (#88043)
authorAlexander Radchenko <radchenkosasha@gmail.com>
Mon, 3 Jul 2023 20:52:51 +0000 (02:52 +0600)
committerGitHub <noreply@github.com>
Mon, 3 Jul 2023 20:52:51 +0000 (22:52 +0200)
commit475c9ac4a8ecef64e0fb4e30d5ac0a89d5c91897
tree1f89e23c16ee44931f401cd40f54fea7f60ec8fd
parent5a968d5bc39b3ec0f2f82ba166056741c20cc755
 TcpListener should implement IDisposable (#88043)

* TcpListener should implement IDisposable

* lint

* Code review

* Update src/libraries/System.Net.Sockets/src/System/Net/Sockets/TCPListener.cs

Co-authored-by: Anton Firszov <antonfir@gmail.com>
* Update TCPListener.cs [EditorBrowsable(EditorBrowsableState.Never)]

* Code review

* lint

* Code review

---------

Co-authored-by: Anton Firszov <antonfir@gmail.com>
src/libraries/System.Net.Sockets/ref/System.Net.Sockets.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/TCPListener.cs
src/libraries/System.Net.Sockets/tests/FunctionalTests/TcpListenerTest.cs