Frees resources used by the System.Net.Sockets.TcpClient class.
This method overrides object.Finalize. Application code should not call this method; an object's object.Finalize method is automatically invoked during garbage collection, unless finalization by the garbage collector has been disabled by a call to the GC.SuppressFinalize(object) method.
The System.Net.Sockets.TcpClient class finalizer closes the TCP connection and releases all managed resources associated with the System.Net.Sockets.TcpClient. These resources include the underlying System.Net.Sockets.Socket used for connecting with the remote host, and the System.Net.Sockets.NetworkStream used to send and receive data. The finalizer does not release any unmanaged resources.
For more information, see [<topic://cpconFinalizeMethodscDestructors>], [<topic://cpconCleaningUpUnmanagedResources>], and [<topic://cpconOverridingFinalizeMethod>].