TcpClient.GetStream()

Its best practice, you remember, to dispose of anything that implements IDisposable when you’re done with it.  The existence of the interface is a signal to the programmer that the garbage collector won’t clean this up after you.  If you don’t dispose of it, you’ll introduce a memory leak. It’s only natural, then, when using … [Read more…]