Mono Class Library: System.Net.Sockets.NetworkStream Overview | MembersSystem.Net.Sockets.NetworkStream.Finalize Method |
Frees unmanaged resources used by the current instance. [Edit]
|
Note:[Edit]Application code does not call this method; it is automatically invoked during garbage collection unless finalization by the garbage collector has been disabled. For more information, see GC.SuppressFinalize(object), and object.Finalize.
This method calls NetworkStream.Dispose(bool)(false), which frees unmanaged resources used by the current instance. When the underlying socket is owned by the current instance, it is closed and the managed and unmanaged resources used by the socket are freed.
Ownership of a socket is specified using the System.Net.Sockets.NetworkStream constructor.
This method overrides object.Finalize.
Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0