Tag Archives: use using

Use the using statement to automatically call Dispose in C#

The using statement makes it easier to free resources when you’re finished with an object. Some objects take up important resources (such as brush handles or file handles) and only free them when they are destroyed. Because of the weird … Continue reading

Posted in OOP, syntax | Tagged , , , , , , , , , , , | Leave a comment