ComponentCategroy .NET equivalent?

  • Thread starter Thread starter Derrick
  • Start date Start date
D

Derrick

Hi All -

So I now have my C# app out in user land, thanks to the many replies on this
thread! Anyway, I'd like to come up with a "Plugin" type of mechanism for
it, whereby the app looks in it's directory for any dlls it doesn't know
about (know how to do that part) and then (the part I don't know how to do)

1) loads the assemblies it does not recognize
2) finds classes in the assembly implementing interface IMyAppPlugin
3) instantiates instances of those classes

Can anyone point me at some example code to do the above?

Thanks in advance!

Derrick
 
Derrick said:

Out of curiosity, what is ComponentCategory?
As a tip, don't ask for an equivilent of something without providing
informatino about what you are talking about. Not everyone is going to know
what you are refering to offhand.
So I now have my C# app out in user land, thanks to the many replies on
this
thread! Anyway, I'd like to come up with a "Plugin" type of mechanism for
it, whereby the app looks in it's directory for any dlls it doesn't know
about (know how to do that part) and then (the part I don't know how to
do)

1) loads the assemblies it does not recognize
2) finds classes in the assembly implementing interface IMyAppPlugin
3) instantiates instances of those classes

Can anyone point me at some example code to do the above?

This is a fair example:
http://www.codeproject.com/csharp/PluginsInCSharp.asp
 
Back
Top