This is a neat little tip from Eric Gunnerson about the SafeHandle class that is shipping in Whidbey. Its a wrapper for operating system handles which help ensure that unmanaged resources are released. Daniel Moth also posted up in the comments witha more complete coverage on the BCL Team’s blog.

I didn’t pick this up when they first posted it – glad I know about it now!