how to cleanup object that does not support dispose method?
How to implement dispose for such scenarios?

Answers were Sorted based on User's Feedback



how to cleanup object that does not support dispose method? How to implement dispose for such scena..

Answer / rahul

i guess by using final function , but it is heavy operation.

Is This Answer Correct ?    2 Yes 0 No

how to cleanup object that does not support dispose method? How to implement dispose for such scena..

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

More C Sharp Interview Questions

Is a decimal an integer?

0 Answers  


What?s an abstract class?

4 Answers   NIIT,


What is the difference between console application and windows application?

0 Answers  


What is the main method in c#?

0 Answers  


What is mvc in c#?

0 Answers  






What is sqldataadapter in c#?

0 Answers  


is it possible to access a remote web service Without UDDI?

0 Answers   TCS,


What is the difference between array.find method and arraylist.find method?

1 Answers   Mphasis,


I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?

0 Answers  


What's the c# syntax to catch any possible exception?

0 Answers  


Distinguish between array and arraylist in c#?

0 Answers  


What is routing in c#?

0 Answers  


Categories