Implement the IDisposable interface when you have managed or unmanaged resources that need cleaning up without waiting for the garbage collector to run.
C# Answers provides answers to common questions about the C# language and the related .NET system. Do you have a programming question about C# or .NET that you would like answered?
Add it as a comment below and I try to answer them all!
Microsoft: learn.microsoft.com/en-us/dot...
GitHub: github.com/ComponentFactory/C...
9 янв 2023