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 |
I have to create a windows application using C# .net to Modifiy the XML file. The application have to show the node and node value. plz help me.
Can we overload indexer in c#?
What is the signature of a method?
What is the use of giving more than one CATCH BLOCK in one TRY block? Directly we can give that catch(Exception e)?Why we go for arrayoutofbound Exception,divided by zero etc..? Explain
what is collections in .net? why we use?
Differentiate between dataset and datareader?
What is a static in c#?
What does it meant to say “the canonical” form of XML ?
What are desktop applications examples?
How Do You Convert A Value-type To A Reference-type?
What is the difference between overriding and overloading in systemverilog?
What?s the difference between the Debug class and Trace class?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)