Possible Duplicate:
Why structs cannot have destructors?
I know that structs in .NET do not have destructor, but its not exactly clear why they are limited in this way.
What technical reason that prevents structs to have destructor?
Possible Duplicate:
Why structs cannot have destructors?
I know that structs in .NET do not have destructor, but its not exactly clear why they are limited in this way.
What technical reason that prevents structs to have destructor?
A struct cannot have a destructor. A destructor is just an override of object.Finalize in disguise, and structs, being value types, are not subject to garbage collection
Also See Destructors
Destructors cannot be defined in structs. They are only used with classes.
The destructor implicitly calls Finalize on the object's base class.