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

Is inheritance possible in c sharp?

641


How do you escape a character?

497


What is the difference between dll and lib?

497


Are tuples mutable c#?

501


How can I access the registry from c# code?

524






Are arraylist faster or arrays?

503


Can properties be static in c#?

556


Explain the difference between user control and custom control. Also, explain their use.

602


Explain About remoting and web services. Difference between them

548


Should I make my destructor virtual?

585


What is array formula?

471


What is the advantage of generics in c#?

513


What are the 3 different types of arrays?

575


In howmany ways can you deploy an assembly?

549


what is the difference between the debug class and trace class?

528