tagged [destructor]

Object doesn't get garbage collected

Object doesn't get garbage collected I think this is a C# beginner question, but I can't seem to find a correct solution. I have a ClassOne object, which defines an event. I create a ClassTwo object, ...

The difference between a destructor and a finalizer?

The difference between a destructor and a finalizer? --- In the C# world the terms "destructor" and "finalizer" seem to be used pretty much interchangeably, which I suspect is because the C# specifica...

9 Dec at 09:56

Dynamically allocating an array of objects

Dynamically allocating an array of objects I have a class that contains a dynamically allocated array, say But now I wa

C# - What does "destructors are not inherited" actually mean?

C# - What does "destructors are not inherited" actually mean? Section 10.13, Destructors, of the [C# Language Specification 3.0](http://msdn.microsoft.com/en-gb/vcsharp/aa336809.aspx) states the follo...