On 13.08.2010 15:10, marcus julius wrote:

> Did I make a mistake and/or is there a way to do this?

Once an assembly has been JITed (which basically means that
one of its methods was invoked), there is no way to change it.

There are 2 ways to reload an assembly:

1) change its assembly name and load it again. Note that this
will not unload/release the types provided by the previous assembly,
nor are the types of the reloaded assembly compatible with those of
the first one. With other words: don't do it unless you've
understood these drawbacks.

2) Use app domains which can be unloaded together with
their assemblies by design.

This is a common pattern in the .NET word, and it can be
implemented easily in managed code. There are plenty of
docs/sample on the internets.

Robert

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to