I have a Factory class that creates number of classes to handle different XML responses, returned by Web Service. All of them are derived from some base class GwsResponse and created depending on the top name element name.
Previously factory and all created object classes were located in the same DLL.
Now we need to increase number of handled responses, but we want new classes to create in separate extension DLL.
We are going to use Activator.CreateInstance to dynamically load the concrete class and avoid Circular references
The names of classes and assembly will be defined in config file.
The approach is well described in the thread:
Similar idea suggested in Creating an object dynamically using Reflection and running in a seperate thread
Links about Dependency Injection (pointed by TheCPUWizard)