How should I destroy my objects in asp.net?



How should I destroy my objects in asp.net?..

Answer / Dhiraj Pratap

In ASP.NET, you can use the `Protected override void Dispose(bool disposing)` method to release unmanaged resources and free other resources that are safe to dispose. It's important to call this method when you're done using an object to ensure memory is cleaned up.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is the flow of processing of the request? : asp.net mvc

1 Answers  


What is Web Services?How we can consume a Web Services in our application?Explain.

1 Answers   Religare,


Explain how asp.net page works?

1 Answers  


What are the disadvantages of asp.net?

1 Answers  


How dataadapter.fill works?

1 Answers  


Whta are the Various steps taken to optimize a web based application (caching, stored procedure etc.) ?

1 Answers  


What is preprocessor in .net?

1 Answers  


I have to send data throug querystring from one page to another. But it should not be displayed in URL. How it is possible?

6 Answers   EMR, Wipro,


.Net Doesn't offer Deterministic Distruction ? a) True b) False

4 Answers   CTS,


how many select state ments are used in stored procedure?

8 Answers   CSC,


What are the Types of objects in ASP

1 Answers   Microsoft,


What is OSI layer? Explain different layers.

1 Answers   MCN Solutions,


Categories