Dynamic Detection?
Date: 07/19/07
(C Sharp) Keywords: browser, web
I'm looking for a good article that will help me do the following:
I have an application that has a toolbar. The toolbar contains a number of objects derived from ToolStrip.
I would like to put each ToolStrip object into its own assembly and deploy them with the main application. At run time, I would like the main application to enumerate all of the DLL files and detect which of them contain one of my ToolStrip objects. To make this work, I suspect I'll have to have each object also implement a known interface that I can create that will positively identify it.
I can then load the DLLs, instantiate the objects in them and use them. This will allow me to push updates with xcopy deployment and allow other developers to develop toolbars as well.
So I have a general idea how to do this, but if anyone knows of a good article on this technique, that would be terribly helpful. I've scanned CodeProject already, but I might have missed it.
PS: Thanks for the suggestions on the web browser code. I did find some example code that got me on my way (and this is part of that project, in fact).
Source: http://community.livejournal.com/csharp/85896.html