I’d like to provide some way of creating dynamically loadable plugins in my software. Typical way to do this is using the LoadLibrary WinAPI function to load a dll and calling GetProcAddress to get an pointer to a function inside that dll.
My question is how do I dynamically load a plugin in C#/.Net application?
The following code snippet (C#) constructs an instance of any concrete classes derived from
Basefound in class libraries (*.dll) in the application path and stores them in a list.Edit: The classes referred to by Matt are probably a better option in .NET 3.5.