Should I still call Dispose()
on my socket after closing it?
For example:
mySocket.Shutdown(SocketShutdown.Both);
mySocket.Close();
mySocket.Dispose(); // Redundant?
I was wondering because the MSDN documentation says the following:
Closes the Socket connection and releases all associated resources.
Thanks.