Answer Posted / susant
The GC call the Finalize () function automatically to
destroy the object called implicit destroy. When you want
to destroy a objects that you think no longer need and free
it from memory, then we will use the dispose function. For
better
Performance we will use the dispose function explicitly.
The Dispose method in .NET belongs to IDisposable interface
and it is best used to release unmanaged objects like File
objects, Windows API objects, Database connection objects,
COM objects etc from the memory. Its performance is better
than the finalize() method.
Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
what is the meaning of Object lifetime in OOPS
Is a structure a class?
Which framework is best for desktop application?
Distinguish between system.string and system.text.stringbuilder classes?
What is the difference between method and constructor in c#?
What is null character in string?
What are the types of constructors?
Explain about ODP.net
What is difference between iqueryable and ienumerable in c#?
update data in an xml file which resides in solution itself, using silverlight 4.0
Explain About Iunknown interface Queue
How will you get the different language strings?
What is mean by c#?
What's the difference between the debug class and trace class? Documentation looks the same.
What is an assembly qualified name