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?
 
Back
Top