Use of dispose method, DOT NET Programming

What is the use of DISPOSE method?

This Dispose method belongs to the IDisposable interface. It is bad  to override the finalize method for writing the cleaning of the unmanaged resources. Therefore if any object wants to release its unmanaged code, the best is to implement IDisposable and override the Dispose method of IDisposable interface. Later once your class has exposed the Dispose method it is the responsibility of the client to call the Dispose method to do the cleanup.

Posted Date: 9/22/2012 3:22:40 AM | Location : United States







Related Discussions:- Use of dispose method, Assignment Help, Ask Question on Use of dispose method, Get Answer, Expert's Help, Use of dispose method Discussions

Write discussion on Use of dispose method
Your posts are moderated
Related Questions
What is the difference between proc. sent BY VAL and By Ref? By val: changes will not be reflected back to the variable. By ref: changes will be reflected back to that varia

Project Description: It is online portal for hotel n packages sales. The project requires to be built on sql, Jquery and c#. The project should be submitted with all coding a

Project Description: I am trying to connect my marketplace website with Stripe/connect. I have 5 or 6 scripts already written that just need to be adjusted so they will work: 2

Need to get a windows desktop application developed Project Description: I am looking to obtain a desktop application developed. The desktop application will have the subsequ

What are the different locks in SQL SERVER? Depending on the transaction level there are six types of lock that can be acquired on data :- 1)Intent: The intent lock des

What are queues and stacks? Stacks refer to a list in which all items are accessed and processed on the Last-In-First-Out (LIFO) basis. In a stack, elements are inserted (push

Project Description: I am seeking a serious and motivated software developer that can create for me software like scanspeeder with all the functions as it has. Only thing that I

Types of Transactions in COM + .NET There are 5 types of transactions that can be used with COM+.   An object is whenever registered with the COM+ it has to abide either to any

In what order do the events of an ASPX page execute. As a developer is it important to understand these events?   If you try to access it in Page_Load that is way previous than

Why do we need static methods for Post Cache substitution? The ASP.NET should be able to call this static method even when there isn't an instance of your page class available.