April 2018
Intermediate to advanced
300 pages
7h 41m
English
CLR (Common Language Runtime) provides automatic memory management, and the objects instantiated with a new keyword do not require to be garbage collected explicitly; GC (Garbage Collection) does the job. However, non-managed resources are not automatically released by the GC and should be explicitly collected by implementing the IDisposable interface. Such resources could be database connections, file handlers, sockets, and so on. To learn more about disposing of unmanaged resources in .NET Core, please refer to Chapter 6, Memory Management Techniques in .NET Core.