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?

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / kishore anumala

To clean up objects holding resources is to make use of
Dispose Method.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What Is A Multicast Delegate?

0 Answers   Siebel Systems,


How do I do implement a trace?

0 Answers  


What is shared inheritance

3 Answers   IGT,


Why are local variables stored in stack?

0 Answers  


How many keyword present in C# language ?

0 Answers   HCL,


How to sort an int array in c#?

0 Answers  


write the Syntax for Function or Method Overriding?

5 Answers   HCL,


Why do we use constructors in c#?

0 Answers  


What is difference between singleordefault and firstordefault?

0 Answers  


How many bytes is an int c#?

0 Answers  


Please explain value types and reference types used in c#?

0 Answers  


Explain how to parse a datetime string?

0 Answers  


Categories