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

What are the 2 kinds of data type conversions in c#?

669


Which operator cannot be overloaded in c sharp?

654


Why do we use stringbuilder in c#?

694


Which namespaces are necessary to create a localized application?

800


What Is A Multicast Delegate?

730


Is c# static or dynamic?

694


What is a string c#?

643


What is use of private class in c#?

715


Can abstract class have parameterized constructor?

680


Can you describe iuknown interface in short?

847


what are the differences between a class and structure

740


Can we extend static class in c#?

650


What is an int c#?

622


Define Final Class in C#

757


What is the base class of all classes in c#?

704