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:
See Question&Answers more detail:osCloses the Socket connection and releases all associated resources.