Version independent equivalent to the "is" operator...
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
What is the best way to find out if a certain object implements any version
of a specific interface?
I have a plugin system in which plugins implement interfaces stored in
strongly named assembly in the GAC.
The plugins, which are dynamically loaded by the host, could potentially
reference any version of that assembly.
Do I need to manually search through the Assembly.GetReferencedAssemblies
and compare based on Name+PublicKey?
And once I confirm that it implements the interface, can I only use
reflection to call its members?
Nathan
.
Relevant Pages
- Re: reiser4 plugins
... "Plugins" is a bad word. ... We now have a standard disk format plugin, ... I see no problems with providing at least as consistent an EA interface ... Only, zip files aren't just compression, so ... (Linux-Kernel) - Re: Email clients
... presumably this isn't a bug in Mail after all. ... but filters not that good (why don't they just license dspam or some ... totally sufficient, and the interface to them is very, very good). ... plugins are basically hacks against a "private" ... (uk.comp.sys.mac) - Driver Model 2 Proposal - Linux Kernel Performance v Usability
... This is not an attempt to have a Microkernel, or any move away from GNU/OSS ... It is worth remembering that for every Kernel hacker there must ... Implement binary kernel 'plugin' interface ... even FS 'plugins' could be created although IPL would be ... (Linux-Kernel) - Re: modular application
... >> Do your plugins inherit from IPlugin or do the implement it? ... > Sometimes the plugins implement a plugin-specific interface, e.g., ... isn't the Type of MyPlugin actually MyPlugin? ... (microsoft.public.dotnet.languages.csharp) - Re: Cross-appdomain communication
... reference to that assembly in order to get the interface type, ... that object to talk to the other appdomain? ... I have an app that searches for plugins at ... >> while I want to create a list of plugins, I don't want those assemblies to ... (microsoft.public.dotnet.framework.remoting) |
|