How do I force ASP.Net to invalid (and thus reload) the current application instance?
<p>Basically I want the effect that would occur if I were to edit the web.config file. The application basically completely unloads itself and starts again, thus re-firing Application_Start and also ditching any dynamically created Types created by the now-defunct AppDomain.</p>

<p><strong>EDIT</strong></p>

<p>I need to do this in my C# code inside my web application. I know it can be done; I did it ages ago but have since lost the code and forgotten how I did it.</p>
