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

Explain the difference between directcast and ctype.

1050


Is a valid int value?

967


What is xamarin used for?

988


Can a sealed class be used as a base class?

1022


What is the difference between array and arraylist in c#?

1085


What is the real use of interface in c#?

976


What is difference between mutable and immutable in c#?

952


What are class fields?

1007


To catch any possible exception What is the C# syntax written ?

1038


Contrast System.String and System.Text.StringBuilder classes?

1035


Is there throws keyword in c#?

945


What is the difference between finalize() and dispose() methods?

1024


List the different stages of a thread?

933


Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

1023


Explain the different ways a method can be overloaded?

918