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 how to manage pagination in a page using .net?
Write the .net syntax for 'while loop'?
Explain boxing and unboxing in .net.
What is the difference between odbc and ado?
What is misl?
If you are executing these statements in commandobject. Select * from table1; select * from table2? How you will deal result set? 42. How do you sort a dataset.
What is the purpose of IClonable interface in .NET?
Explain the different types of proxy patterns?
Tell us what is heap and what is stack?
Explain how to stop a thread?
What are an object and a class?
What is implement a generic action in webapi?
I am constantly writing the drawing procedures with system.drawing.graphics, but having to use the try and dispose blocks is too time-consuming with graphicsobjects. Can I automate this?
How to view a .NET assembly?
Different between .net & j2ee ?