Disposing, using, and null

I had an interesting discussion a day or so ago on when you should implement IDisposable on a class. Like many things, it’s more complicated when you dig a little. There are three scenarios that are interesting: 1) A class that wraps an unmanaged resource 2) A class that has fields that implement IDisposable 3)…

5

Socket programming tip: Localhost != local ip address

I’ve been writing some socket-based code for an upcoming column, and it worked really nice when I used localhost for the client and server on another machine, but broke when I tried to use the machine name. Just something else I didn’t know about networks. localhost is not the same thing as the local ip…

5