Actually you can do this. You will need to look into crating new
application domains (via System.AppDomain.CreateDomain), using
reflection to load the dll that you are interested in (see the
System.Reflection namespace), then unloading the AppDomain when you are
done with the dll (using System.AppDomain.Unload).
If you are interested in seeing an "in production" working example of an
application that can do this, take a look at NUnit. NUnit allows you to
replace the test DLLs at runtime and the application will unload the
ones it was using then load up the new ones.
Hope this gets you going in the right direction.
Have A Better One!
John M Deal, MCP
Necessity Software
Hayato Iriumi wrote:
Hello Daniel,
You can't do that.
How do i dynamicaly load and unload a C# dll at runtime