I found that for implementation of IDisposable interface Visual Studio 2019 suggests two possible fixes:
Is it possible to create a custom interface with an option to implement with some pattern?
If it's possible then how to do it?
The only somehow related post I found is this one.
