Can anyone point me towards a working example of a plug-in architecture for C#/.Net 2?
I am developing a simple task manager and I want the individual task types to have their own, separately compiled processors. These will conform to a common interface / API defined by the task manager. I have used the System.Reflection classes and methods to create the processors dynamically and all is nearly working, but I cannot get the cast from created object to the interface type to work. I have also tried defining the interface as a class (as there is nothing else that needs to be inherited), but run into the same problem with the cast. I cannot call the API methods unless the cast is accepted by the CLR.
If someone can point me towards a working example, that would probably be the best way for me to find the trouble and I would be very grateful as this has been holding me up for a while.
Thanks in anticipation.