What is Dispose method in .NET

Q

What is Dispose method in .NET ?

✍: Guest

A

.NET provides “Finalize” method in which we can clean up our resources. But relying on this is not always good so the best is to implement “Idisposable” interface and implement the “Dispose” method where you can put your clean up routines.

2007-10-23, 4879👍, 0💬