disposable
Setting an object to null vs Dispose()
It’s important to separate disposal from garbage collection. They are completely separate things, with one point in common which I’ll come to in a minute. Dispose, garbage collection and finalization When you write a using statement, it’s simply syntactic sugar for a try/finally block so that Dispose is called even if the code in the … Read more