Where does the dispose method lie and how can it be used to
clean up resources?
Answer Posted / srinivas persineti
dispose method is in IDisposable interface,when you are
writing any class in .Net u should inherit the IDisposable
interface and u should implement the Dipoase method.in
dispose method u can call teh GC.Collect() to free up the
object.along with u can aslo call GC.SuppressFinalize() to
avoid multiple callings of GC.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain the use of activex control in .net?
How is threading done in .net?
Can "this" be used within a static method?
How do I spawn a thread?
How do you generate a strong name?
Explain what is mutex?
Describe the Managed Execution Process
Is .net core free?
What is the difference between constants and read-only variables?
What is Ajax? How it is related to your project?
Please explain is the jit an interpreter?
Explain can 2 different applications use the same dll in gac at the same time?
Is .net core the future?
What is a .net class?
What is alias ? Is it used in .Net ?