Late Binding Question

D

Doug Handler

In my application several modules are dynamically bound via Reflection to
the main app - this works fine. Is there a way that I can dynamically
unbind a module. Basically, i want a dialog box that the user selects which
modules they want to bind / unbind. Right now the binding happens at
startup of the app. Any example of code would be great.

Thanks in advance.
 
J

Jon Skeet [C# MVP]

Doug said:
In my application several modules are dynamically bound via Reflection to
the main app - this works fine. Is there a way that I can dynamically
unbind a module. Basically, i want a dialog box that the user selects which
modules they want to bind / unbind. Right now the binding happens at
startup of the app. Any example of code would be great.

Unfortunately, you can't unload individual assemblies - you can only
unload whole AppDomains. Whether you can easily use separate AppDomains
will depend on what you need to marshal across the different modules.

Jon
 

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