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

what is the equivalent to regsvr32 and regsvr32 /u a file in .net development?

783


What is difference between list and ilist in c#?

662


What is ienumerable and iqueryable?

727


Define constructors

765


How can I produce an assembly?

853


How to force my .net app to run as administrator on windows 7?

740


What are the two kinds of properties in c#.

721


Explain the Usage of web.config

792


What are the Configuration files in .net?

766


What is the difference between list and arraylist c#?

746


What is COM Interoperability?

780


Tell me the difference between value passing and address passing?

886


Why singleton class is sealed in c#?

732


What is xpath in c#?

675


Which framework is best for desktop application?

741