expensive-resources

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 ...

css: display none. Is it expensive?

I decide to make read more... function by having two divs, and setting one of them display: none but in this case i store all the data twice. now the question - If I have one div element, with style="display:none", which contains many big size images in it, is it have an influence on page opening time? ...