Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is Dispose method in .NET?

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


Please Help Members By Posting Answers For Below Questions

Is c# code is unmanaged or managed code?

1165


What is a dbml?

951


What is the difference between IEnumerator and IEnumerable?

1213


What is the advantage of generics in c#?

957


What is the difference between wrapper class and primitive?

901


How can I produce an assembly?

1079


Why use a singleton instead of static methods?

942


What is difference between struct and class in c#?

964


What does clr stand for?

978


What is serialization in c#?

948


How can you write a class to restrict that only one object of this class can be created (Singleton class)?

975


What is a partial class in c#?

1108


What are the types of class in c#?

1158


What types of object can I throw as exceptions?

979


What is the difference between a class and an object c#?

1034