problem with dlls

  • Thread starter Thread starter bobo
  • Start date Start date
B

bobo

I was designing a software with plugin function using C#.
Let's say, that I wanna upgrade this software just by downloading dlls from
the network and copying them into a special directory. I may add dlls or
replace the old ones. But as you know, C# programs treat objects in dll as
newbies if this dll is not imported when compiling the programs, even if the
objects in dll is exactly the same type by definition. So, here comes my
problem , I can't simply using Activator to create an object from dlls and
assigning it to my variables (because they have different types!), then my
plugins won't work. I can use Reflection to get around this problem, but
it's trouble some when I create many objects. Can anybody give me any
advice?
 

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

Back
Top