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 are the different ways a method can be overloaded?
What are functions c#?
What is difference between an Structure and Class?
Is post back c#?
What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to
What is “using” statement in c#?
Which class does the remote object has to inherit?
Is inheritance possible in c sharp?
What are the differences between events and delegates in c#?
what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?
What is a virtual property. Give an example?
What are the drawbacks of extending an interface as opposed to extending a class?
What is interpolation in programming?
What are the commonly used i/o classes?
What is difference between an reference type and value type in C#?