Yes. You must get rid of them so that your member variables are properly configured.
Each time you encapsulate the IDisposable class, you must make your IDisposable class. In the Dispose method, you must use your encapsulated resources. In principle, treat them the same way as with your native resource.
source
share