Here’s an interesting bit of CLR trivia for you. The CLR behaves differently with respect to how aggressively it considers references dead depending on whether or not a debugger is attached. Take the following code as an example: public void Foo() { Bar b = new Bar(); // Do some stuff with b […]