Difference between dispose and destructor?

Answer Posted / vimala

the dispose() method is used to remove the unused resources
from the memory.

whereas the destructor () method is used to deallocate the
allocated memory by the constructor() method.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between StackPanel and RelativePanel ?

581


Define sealed classes in c#?

519


What is task parallel library?

513


What do you mean by directing?

493


What are the types of parameters in c#?

530






Which is faster array or arraylist in c#?

483


Explain inheritance in c#?

548


What is xml serialization in c#?

474


Explain clr in brief.

554


What is difference between string and stringbuilder in c#?

466


Why are strings immutable in c#?

495


What is the data encapsulation?

487


What is lazy loading and eager loading in c#?

486


Is java better than c sharp?

515


What are virtual classes in c#?

535