I am using .dll reference to my application.
i want to unload the .dll in a button click event.
How to do it ???
I am using .dll reference to my application. i want to unload the .dll
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t unload an individual assembly – you have to unload a whole
AppDomain. In other words, you’ll need to load your other assembly (and associated code) in a newAppDomain, then when you want to unload it you unload theAppDomain.Of course, this makes life a lot harder as you have to worry about marshalling calls between AppDomains – but it’s all that .NET allows.