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

Can we extend sealed class in c#?

906


Why is lazy loading?

868


What is difference between array and arraylist in c#?

955


What is writeline in c#?

870


What is a string c#?

897


What are the generation of Garbage Collection in C# .NET ?

950


What is multiple interface in c#?

969


What are the new features in c# 2.0?

978


What is the namespcae generally given to the webpage of the .NET Framework ?

1050


What is the benefit of dependency injection c#?

896


What is the use of list in c#?

847


Can you declare a class or a struct as constant?

1058


What happens when thread sleep () method is called?

899


What are anonymous types in c#?

901


What is the difference between ienumerable and iqueryable?

955