Hi all,
Well im relatively new to C#, and for that matter working with DLLs.
For one of the pieces of software Im working on at the moment, Id like to allow others to create their own "plugins" for certain functions.
Essentially Id like to have a class that anyone can remake provided I give the interface and specs on what each function should do.
I reckon that this would simply mean others can compile a dll assembly, and my program could load that dll at runtime (based on a string variable indicating the name of the dll specified in a config file or something). I assume Id need to use reflection for such matters.
The main problem Im having right now, is where can I find out about loading the dlls at runtime, and how to load them based on a string variable, obviously its not as simple as adding a reference to the project as that isnt done at runtime.
I hope that clairfies things, and if Im way off track in how to do this "plugin" type off stuff, please do let me know.
Thank you in advance...
Well im relatively new to C#, and for that matter working with DLLs.
For one of the pieces of software Im working on at the moment, Id like to allow others to create their own "plugins" for certain functions.
Essentially Id like to have a class that anyone can remake provided I give the interface and specs on what each function should do.
I reckon that this would simply mean others can compile a dll assembly, and my program could load that dll at runtime (based on a string variable indicating the name of the dll specified in a config file or something). I assume Id need to use reflection for such matters.
The main problem Im having right now, is where can I find out about loading the dlls at runtime, and how to load them based on a string variable, obviously its not as simple as adding a reference to the project as that isnt done at runtime.
I hope that clairfies things, and if Im way off track in how to do this "plugin" type off stuff, please do let me know.
Thank you in advance...