What is the use of destructor in c sharp?
A destructor is used for destroying managed objects only.
A destructor used for destroying only unmanaged objects only.
A destructor can be used for destroying both managed and unmanaged objects.
None of the above.
Usually a destructor is not required for destroying managed object since CLR can automatically delete managed objects . But CLR is essentially required for cleaning up unmanaged objects .
Back To Top