C# inherit from a class in a different DLL
Posted
by
Onno
on Programmers
See other posts from Programmers
or by Onno
Published on 2014-08-21T16:45:23Z
Indexed on
2014/08/21
22:26 UTC
Read the original article
Hit count: 295
I need to make an application that needs to be highly modular and that can easily be expanded with new functionality.
I've thought up a design where I have a main window and a list of actions that are implemented using a strategy pattern.
I'd like to implement the base classes/interfaces in a DLL and have the option of loading actions from DLL's which are loaded dynamically when the application starts. This way the main window can initiate actions without having to recompile or redistribute a new version. I just have to (re)distribute new DLL's which I can update dynamically at runtime. This should enable very easy modular updating from a central online source. The 'action' DLL's all inherit their structure from the code defined in the the DLL which defines the main strategy pattern structure and it's abstract factory.
I'd like to know if C# /.Net will allow such a construction.
I'd also like to know whether this construction has any major problems in terms of design.
© Programmers or respective owner