dynamically load managed dlls

  • Thread starter Thread starter pnp
  • Start date Start date
P

pnp

Hi, is there a way that i could dynamically load a managed dll (written in
C# as well) and use the classes, interfaces and in general, use it, as I
would use a C# code file?

And how could I do that?

Thanx in advance,
Peter
 
Hi, is there a way that i could dynamically load a managed dll (written in
C# as well) and use the classes, interfaces and in general, use it, as I
would use a C# code file?

And how could I do that?

You need to use things like Assembly.Load to load the DLL, and then
reflection to get types etc.

See http://www.pobox.com/~skeet/csharp/plugin.html for an example of
this, admittedly written with a different angle from the one you're
looking at.
 
Back
Top