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
Explain memory-mapped files. Memory-mapped files (MMFs) permit you map the content of a file to the logical address of an application. These files enable the multiple processes

What are the different types of triggers in SQl There are 2 types of triggers in the SQL server 2000 :- 1) INSTEAD OF triggers: The INSTEAD OF triggers fire in place of

Jquery and MVC 4.5 Training Session I am looking who have industry experience working on Microsoft Technology ( MVC 4.5 ) and Jquery, who will take live online session and provi

Question: (a) How can you simple-bind controls at design mode? (b) How can a blank record be created in a dataset bound to the controls in a Windows form? (c) Datagrid

Explain different software development life cycles. The System Development Life Cycle (SDLC) is the overall process of developing information systems through multi stage proces

The Cache object is always defined in the System.Web.Caching namespace. You can get the reference to the Cache object by either using the Cache property of the HttpContext class in

ASP Programmer I need a fixing all W3c validation errors and it is a ASP website. Have any queries please send a message and I will provide more information on project. De

Excel Assistant Need somebody to duplicate/create an excel spreadsheet and to make it website friendly. Desired Skills are VB.NET, VBA, C++, macros, webdesign

What is .NET Remoting? The .NET remoting is replacement of DCOM. Using .NET remoting you can make remote object calls that lie on different Application Domains. since the remot

What are the  steps of acquiring a proxy object in Webservice? The following steps are required to get a proxy object of a webservice at the client side:- 1.     The Clie