Dec 032012
 
 December 3, 2012  Posted by at 8:25 am Not So Stupid Questions  Add comments

Basically resources the Garbage Collector doesn’t know what to do with, for example database connections etc. These should be disposed of explicitly!

  One Response to “Stupid Question 96: What are ‘unmanaged resources’ in .Net?”

  1. using(GreatestIdeaEver greatestIdeaEver = Mike.Brain.GenerateIdea())
    {
    // TODO: Do something with this grand idea
    }

    // ah shucks, my idea was disposed of!
    // oh well, do something else — perhaps write more buggy code or something

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

What is 7 + 6 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)