When are C# "using" statements most useful?
So a using statement automatically calls the dispose method on the object that is being "used", when the using block is exited, right? But when is this necessary/beneficial? For example let's say you have this method: public void DoSomething() { using (Font font1 = new Font("Arial", 10.0f)) { // Draw some text here ...