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 to cleanup object that does not support dispose method?
How to implement dispose for such scenarios?

Answer Posted / yogi

Can use System.GC.Collect() to clean up objects and force the garbage collection manually

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is is possible to force garbage collector to run?

1047


What are jagged arrays used for?

986


What is a long in c#?

1124


Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?

1024


What is a framework in c#?

993


What is the difference between a private assembly and a shared assembly?

1052


Is 0 an unsigned integer?

952


Name which controls do not have events?

1102


Can a sealed class be used as a base class?

1026


What is dictionary class in c#?

1049


Is datetime immutable c#?

979


Which is faster abstract class or interface in c#?

1035


Is overriding of a function possible in the same class?

1008


What is string method in c#?

977


Can you drink alcohol with a loop recorder?

981