How to Unload an Application Domain in C#

To unload a

domain and any assemblies within the domain, call the static AppDomain.Unload method.

 AppDomain d = AppDomain.CreateDomain("NewDomain"); AppDomain.Unload(d);

Note: Individual assemblies or types cannot be unloaded.

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.