Make sure TcpClient properties do not throw when the underlying Socket is null
authorPetr Onderka <gsvick@gmail.com>
Tue, 5 Jul 2016 15:43:02 +0000 (17:43 +0200)
committerPetr Onderka <gsvick@gmail.com>
Fri, 8 Jul 2016 01:01:04 +0000 (03:01 +0200)
commitffc6d5fa7a6d86e0bcfe652ae9c248fe0072bb35
tree6a75feaad0566c1e5fa698cbd3254a922230db2e
parent588182ba5375758544a5472f4cc9b8a5d0c7aba1
Make sure TcpClient properties do not throw when the underlying Socket is null

Commit migrated from https://github.com/dotnet/corefx/commit/f0331c00fef6a7dc6beacdd37905360ec030591e
src/libraries/System.Net.Sockets/src/System/Net/Sockets/TCPClient.Unix.cs
src/libraries/System.Net.Sockets/src/System/Net/Sockets/TCPClient.Windows.cs
src/libraries/System.Net.Sockets/tests/FunctionalTests/TcpClientTest.cs