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

How to sort an int array in c#?

965


What is a factory in c#?

879


What is binary search tree in data structure?

895


Why do we need abstraction in c#?

928


What is difference between a constant and read-only in C#?

965


What is ildasm and obfuscator in net?

960


What is oledbconnection c#?

926


How do you prevent a method from being overridden in c#?

864


Explain “static” keyword in c#?

869


Structs are not reference types. Can structs have constructors?

980


What is session and cookies in c#?

970


Why do we use classes?

889


Explain the importance and use of each, version, culture and publickeytoken for an assembly.

932


Are value types sealed?

988


What is difference between assembly and dll?

976