April 2018
Intermediate to advanced
300 pages
7h 41m
English
Any resource that is outside of your application boundary is considered an unmanaged resource. It could be a database, filesystem, web service, or a similar resource. To access the database, we use the managed .NET API to open or close the connection and execute various commands. However, the actual connection to the database is not managed. The same is true for the filesystem and web services where we use managed .NET APIs to interact with them, but they use unmanaged resources in the backend that are not managed. The IDisposable interface is the best fit for all such scenarios.