Where does the dispose method lie and how can it be used to
clean up resources?



Where does the dispose method lie and how can it be used to clean up resources?..

Answer / 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

More Dot Net General Interview Questions

Is .net core stable?

0 Answers  


syntax for binding the data from database

1 Answers   Satyam,


hai, about trading domain and need simple project on trading system. please help me...

0 Answers  


What is a Manifest?

1 Answers   CTS,


How can you assign an rgb color to a system.drawing.color object?

0 Answers  






create a keypair?

1 Answers  


Explain .net framework overview?

0 Answers  


What is Event Bubbling in .NET?

0 Answers   Viscus Infotech,


What are server controls?

1 Answers   Avanade, Wipro,


Write the .net syntax for 'for loop'?

0 Answers  


What are code contracts?

0 Answers  


What is the managed and unmanaged code in .net?

3 Answers   Deltech, Dhanush Infotech,


Categories