Лонгрид 2014 года, который однако не теряет своей актуальности и сегодня. В статье рассматриваются тонкости использования IDisposable
https://www.codeproject.com/Articles/29534/IDisposable-What-Your-Mother-Never-Told-You-About
#IDisposable, #patterns
https://www.codeproject.com/Articles/29534/IDisposable-What-Your-Mother-Never-Told-You-About
#IDisposable, #patterns
CodeProject
IDisposable: What Your Mother Never Told You About Resource Deallocation
One difficulty of the IDisposable interface overcome with the Disposable Design Principle.
Некоторые нюансы работы с классами, которые реализуют интерфейс IDisposable при настройке внедрения зависимостей в ASP.NET Core
https://stevetalkscode.co.uk/disposables-in-di-part-1
#IDisposable #DI
https://stevetalkscode.co.uk/disposables-in-di-part-1
#IDisposable #DI
SteveTalksCode
Understanding Disposables In .NET Dependency Injection - Part 1
In this post I will be discussing the traps that can catch you out by potentially creating memory leaks when registering types that implement the IDisposable interface as services with the out-of-the-box .NET Dependency Injection container.
Заблуждения и баги, которые могут вам встретиться при работе с IDisposable
https://www.lazy-electron.com/2021/03/06/favorite-idisposable-bugs.html
#IDisposable #bugs
https://www.lazy-electron.com/2021/03/06/favorite-idisposable-bugs.html
#IDisposable #bugs
Lazy Electron Consulting
My favorite bugs with IDisposable
System.IDisposable is a foundational interface used in most .NET programs. Its primary purpose is to provide a mechanism for releasing “unmanaged” resources: file streams, database connections, network sockets, etc. Here’s the whole thing: