What is Idisposable interface & Finalize Dispose pattern ?

Csharp By Sagar Jaybhay

In this article we will understand what is the use of IDisposable interface and how Finalize Dispose pattern will implement in C# By Sagar Jaybhay. Idisposable interface and Finalize Dispose pattern Garbage collector only cleans managed code and if any unmanaged code it finds it doesn’t reclaim its memory so to remove unused objects we need something. In this case, at least we have a responsibility to call these kinds of which free unmanaged code objects. In C# application there is a place where we can manage these unmanaged objects…

Read More