I was working on a class in which I had to dispose of managed and unmanged resources which looked something like this (only the disposing part, obviously):
c