Coding Villa Forum
FAQs
Advertisements

ASP.NET - Explain in what order a destructors is called in Asp.Net

Fazal Online 1/30/2012 12:23:17 PM

Hello There!

I want to know that in what order a destructors is called in Asp.Net

Please guide me Friends

Thanks

Share with Friends

Advertisements

Answer

Iram Online 4/2/2012 12:47:43 PM

Hello,

A destructor is called in reverse order of constructor. It means destructor of most derived class is called first then its parent's destructor is called. Its calling hierarchy is from bottom to top e.g. from child to parent and so on.
Share with Friends

Post reply

 

Enter This Code
Captcha
 

Subscribe

Email me when people reply


Subscribe to the