Avoid C# Memory Leaks with Destructor and Dispose
Here are two classes that allocate resources, the first class needs to implement a destructor and Dispose, but the second class doesn't need to. The difference is that the first class allocates resources in the constructor and doesn't clean them up immediately. In contrast, the second class allocates resources in a member function and carefully [...]
Read more



11:01 pm by admin