[Mono-list] Accessing member objects in destructors

Gustavo García Bernardo ggb@tid.es
Thu, 04 Mar 2004 18:23:35 +0100


Hi,
Reading the Mono code i have seen sometimes a class destructor access a
method of a member object:

Socket socket = new Socket();
~XXXX
{
	socket.Close ();
}

Is this correct? You can assert the socket object is not freed before XXX
object?

Thx, best regards.

G.