calling .dll from XML

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I was wondering if I could do the following.

1) Write a windows service that reads an XML file.
2) Have the XML file contain information on what .dll to reference
3) Have the XML file contain information on what methods to call.

The advantage to doing this is that you could add new .dlls without
recompling or stopping the windows service. You could just add a new node to
the XML to define what .dll you want to reference and what method you want to
call.

Is there a reason why I shouldn't/can't do this?
 
Using reflection it is certainly possible. However, performance will
obviously be affected (only benchmarking in your environment can tell you how
much so).

HTH
Dan
 
Thanks Dan. I wasn't sure what it was called. I also found this article
that looks like it might help.
 
Back
Top