Assembly unloading

  • Thread starter Klaus Aschenbrenner
  • Start date
D

Daniel O'Connell [C# MVP]

Klaus Aschenbrenner said:
Hi!

Currently (.NET v1.1) we can only unload assemblies when we are shutting
down the AppDomain. Are there any changes in .NET v2.0?

I do not believe so. It is possible to load assemblies for reflection only,
but these too require an AppDomain unload.

There is one new feature, Lightweight CodeGen(LCG) which allows new methods
to be generated that will be freed when the GC can no longer reach them. You
can use them to handle alot of cached compiling and other things. I don't
know what help it could be. The class you need to look at is
System.Reflection.Emit.DynamicMethod
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top