Difference between dispose and destructor?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Answer / penchal das
Dispose()is a method which is used to deallocate the unused
resources.
Destructor() is a method which is called when an object was
destroyed.
Is This Answer Correct ? | 2 Yes | 1 No |
What is the purpose of dependency injection?
what is the diference between casting and converting?
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
What is string concatenation?
Explain About remoting and web services. Difference between them
What is default value of bool in c#?
What are the commonly used i/o classes?
what is a constructor? What is a destructor?
Can You Prevent Your Class From Being Inherited By Another Class?
what are nullable types in c#
What is Garbage Collection in .Net?
What is the difference between <c> and <code> xml documentation tag?