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
Explain the difference between directcast and ctype.
Is a valid int value?
What is xamarin used for?
Can a sealed class be used as a base class?
What is the difference between array and arraylist in c#?
What is the real use of interface in c#?
What is difference between mutable and immutable in c#?
What are class fields?
To catch any possible exception What is the C# syntax written ?
Contrast System.String and System.Text.StringBuilder classes?
Is there throws keyword in c#?
What is the difference between finalize() and dispose() methods?
List the different stages of a thread?
Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?
Explain the different ways a method can be overloaded?