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...

How can you clean up objects holding resources from within
the code?

Answer Posted / nagasaichand

The recommended practice is to implement both Finalize as
well as Dispose methods on an object which needs to clean up
unmanaged resources. The Finalize method would serve as a
backup mechanism in the event that the Dispose is never
called. The garbage collector would perform the object
finalization and prevent a permanent leak of the unmanaged
resource.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can an inner class access the members of outer class?

975


Define an assembly in .net?

954


What do constructors do in c#?

945


Is enum a value type c#?

1036


What are satellite assemblies? How will you get the different language strings?

901


What is object pool in .net?

932


How do I create a .exe file?

1003


Explain about WSDL

1046


When do you generally use a class over a struct?

961


What is the difference between out and ref in c#?

1026


What is a static property. Give an example?

945


What is difference between comparable and comparator?

886


What is a hash table c#?

868


Which attribute is used in order that the method can be used as webservice?

935


What is data binding c#?

924