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
What is the implicit name of the parameter that gets passed into the class set method?
What does type safety mean?
What is a property in c#?
What are static and dynamic variables?
Can we inherit private class in c#?
What are virtual classes in c#?
What is an Interface in C#?
write a program to find the biggest palindrome in the given string
What is the difference between private and protected in c#?
What's the difference between the debug class and trace class? Documentation looks the same.
Can I call a virtual method from a constructor/destructor?
Explain the process of abstraction with an example?
What is nullable types in c#?
How many types of methods are there in c#?
How do I know if executenonquery is successful c#?