How can you clean up objects holding resources from within
the code?
Answers were Sorted based on User's Feedback
Answer / raju jaiwardhan
you would need to use a constraint to mandate types
implementing the IDisposable interface to call the Dispose
method.
| Is This Answer Correct ? | 2 Yes | 0 No |
If we want to write a Windows service that cannot be paused, only started and stopped. How to accomplish that?
Difference between dispose and finallize method?
What is the advantage of .net core?
What security mechanisms to enforce for Authenticating and authorizing the users?
What is RunTime Polymorphism?
5 Answers Deloitte, eClerx, Horizon, Intel, Pragna Technologies,
How you apply a theme in whole application in .Net?
What are the providers available with VS.NET ?
What is the difference between Dataset and DataReader? Can u breif me ADO.net classes and architecture
What is a Manifest?
If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?
If I am writing in a language like vb or c++, what are the procedures to be followed to support .net?
What is Method Overriding? How to override a function in C#?