Dec 052012
 December 5, 2012  Posted by at 5:07 pm Not So Stupid Questions  Add comments

Recorded at 32m, Shark Point- Phuket Thailand.

In most .Net classes there isn’t any difference between close and dispose, besides the name. In WinRT they are always identical, while in general in .Net there are just a few exceptions such as database connections where close just closes the connection (and can later be reopened) and System.Windows.Forms.Form.

  One Response to “Stupid Question 97: What is the difference between close and dispose in .Net?”

  1. Dispose usually comes from deriving from IDisposable. Thus you can use “using” in C#.
    Dispose almost always calls Close() behind the scene.

 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>



What is 7 + 4 ?
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) :-)