Question : C# Creating Plugins

I'm wanting to create an application that will support plugins.  The plugins will need to have their own UI which will need to be rendered within a box in the main application.

I'm looking for a kind of best practices method to get me started.  I will be writing this in using .NET Framework 3.5 SP1 or 4.0 (if this will better support what I need).

Just need to get pointed in the right direction for how to go about developing an app that supports plugins like this.

Thanks in advance.

Answer : C# Creating Plugins

You need to develop interface based approach.

Create an interface that will be implemented by the plugins. The interface should be available in the main application.

Now create plugins that implement this interface.

In the main application (where Interface definition is available), write a code to scan DLL files in Plugins sub directory. Using Reflection, get the implemented interface details, and if they match, load the assembly.

This way, you'll be able to create your desired application.
Random Solutions  
 
programming4us programming4us