.NET Garbage Collection
Mar 7, 2023
.Net uses Managed Memory Model.
The platform takes care of managing the blocks of memory that your program creates and reclaiming them when they are no longer in use.
The garbage collection also works to make sure that when your program allocates memory for use that memory is created efficiently within the managed heap for your program.
All of them happen automatically, as you don’t have to manually release memory.
few exceptins for that; OS resoursces, files, network connecitons…