Assembly unloading

  • Thread starter Thread starter Klaus Aschenbrenner
  • Start date Start date
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
 
Back
Top