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 implicit name of the parameter that gets passed into the class set method?

680


What does type safety mean?

827


What is a property in c#?

672


What are static and dynamic variables?

854


Can we inherit private class in c#?

719


What are virtual classes in c#?

742


What is an Interface in C#?

742


write a program to find the biggest palindrome in the given string

753


What is the difference between private and protected in c#?

707


What's the difference between the debug class and trace class? Documentation looks the same.

734


Can I call a virtual method from a constructor/destructor?

683


Explain the process of abstraction with an example?

695


What is nullable types in c#?

692


How many types of methods are there in c#?

735


How do I know if executenonquery is successful c#?

635