Jump to content

x.dispose


Recommended Posts

From what I can see, it looks like the Dispose method is implemented by someone who creates a custom class in order to destroy that class gracefully, without any memory leaks or anything else like that.If you don't understand what I just said, you probably need to either 1) do some reading and/or research into object-oriented programming or 2) don't create your own object classes.The Close method looks like it is pre-defined on a lot of built-in objects, but I don't think Close de-allocates memory the way Dispose does. For example, if you Close a database object, it will simply close the connection to the database, but the database object will remain in memory. However, if you Dispose of the database object, the object will automatically close and will be removed from memory.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...