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
How do I use the thread pool?
What are the namespace available in .net?
Is .net is a language?
How is a managed code executed?
Difference between abstract class and interface in .net?
What is .net and .net framework?
What is typical about a windows process in regards to memory allocation in dot net?
Do I have any control over the garbage collection algorithm?
What are the new features in .net core?
Explain how to manage pagination in a page using .net?
Explain what inheritance is, and why it's important?
Explain about managed heap?
What is meant by localization?
What is boxing and un-boxing in .net?
What are the difference bbetween value type & reference types ? Example from .net. Integer & struct are value types or reference types in .net?