Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReflectionOnlyLoadFrom & Unload?

If I do an Assembly.ReflectionOnlyLoadFrom(), is it possible to unload the assembly?

Or, can it be unloaded only if it is in a separate AppDomain, as with Assembly.LoadFrom() ?

I have a tool that needs to load an assembly for inspection.

like image 738
Cheeso Avatar asked Aug 11 '09 02:08

Cheeso


1 Answers

Yes, you need to load it into a separate AppDomain, then unload the entire AppDomain.

like image 146
Steven Sudit Avatar answered Nov 16 '22 02:11

Steven Sudit