Difference between dispose and destructor?

Answer Posted / nitin

Unused unmanaged resources are removed by dispose method
and It is called manually

Destructor is used to released unused managed resources and
it is called automatically by the Garbase Collector

Is This Answer Correct ?    21 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain deadlock?

517


What does return do in for loop?

485


What is autopostback in c#?

480


What is the difference between static and constant variables?

545


What is arraylist class in c#?

534






Why is c# better than java?

504


How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!

1685


Is c# difficult to learn?

487


What is desktop example?

489


Explain the difference between abstract class and interface in .net?

475


Ho we can see assembly information?

523


Is it possible to inline assembly or il in c# code?

529


In a memory when you Box and Unbox a value-type what happens?

543


What is part of a method signature in c#?

471


Explain the concepts of cts and cls(common language specification).

508