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

What is jit compilers?

0 Answers  


What are the different types of Classes in .NET?

0 Answers   PUCIT,


What are the differences between an interface and an abstract class in .net?

0 Answers  


What is .net standard?

0 Answers  


How will you register com+ services?

1 Answers  






What does the "EnableViewState" property do?

1 Answers  


Integer & struct are value types or reference types in .NET?

1 Answers  


What is Flyout Design Pattern in .NET?

0 Answers   Petranics Solutions,


What is "common language specification" (cls) in .net?

0 Answers  


What is the managed and unmanaged code in .net?

2 Answers  


Can I write my own .net host?

0 Answers  


what are connection strings?

0 Answers   Manhattan, RTRT,


Categories