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

Managed Unmanaged code Garbage Collector Generations

Csharp By Sagar Jaybhay

What is the difference between Managed code and Unmanaged code Garbage Collector and Generations in C#? In this article you will understand What is the difference between Managed code and Unmanaged code Garbage Collector and Generations in C# Interview Questions Part 1 – https://sagarjaybhay.com/interview-questions-for-experienced-beginner-net-professionals-series-part-1/ Managed Code: The code which runs under the control of CLR is called a managed code. The code which is written in the .NET framework is managed code. Managed code uses CLR which looks after your applications by managing your application memory handling security and allow…

Read More