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
Name the classes that are introduced in the system.numerics namespace.
Is it true that objects don't always get destroyed immediately when the last reference goes away?
What are the two main parts of the .net framework?
What is operator overloading in .net?
What are the new 2.0 features useful for?
Explain me what is .net web service?
What is the concept of inheritance and how it works in .net?
What are the difference bbetween value type & reference types ? Example from .net. Integer & struct are value types or reference types in .net?
Explain me what is an anonymous method and how is it different from a lambda expression?
Explain me what is encapsulation?
Explain what is a delegate?
Please explain when should you use .net web forms over asp.net mvc?
Explain the different types of proxy patterns?
which methos do you invoke on the dataadapter control to load your generated dataset with data?
What do you mean by Driver Script?