c# Programming Glossary: iplugin
Writing C# Plugin System http://stackoverflow.com/questions/1070787/writing-c-sharp-plugin-system code and risk breaking something . I've got the base IPlugin interface written atm nothing is implemented yet Here is how.. asm.GetType asm.FullName if objType null if typeof IPlugin .IsAssignableFrom objType MessageBox.Show Directory.GetCurrentDirectory.. objType MessageBox.Show Directory.GetCurrentDirectory IPlugin ipi IPlugin Activator.CreateInstance objType ipi.Host Plugins.m_PluginsHost..
.NET: Unable to cast object to interface it implements http://stackoverflow.com/questions/1596796/net-unable-to-cast-object-to-interface-it-implements files via reflection in order to analyze if there is a IPlugin interface which comes from Library.dll too . Everytime I called.. to load the plugins it could not cast them to IPlugin although they implemented it. I nearly got mad but then I found.. every time with my PluginManager I now had two types of IPlugin one in the actual Library.dll that is used from the main assembly..
how to delete the pluginassembly after AppDomain.Unload(domain) http://stackoverflow.com/questions/425077/how-to-delete-the-pluginassembly-after-appdomain-unloaddomain _AppDomain AppDomain.CurrentDomain.Evidence setup IPlugin plugin IPlugin appDomain.CreateInstanceFromAndUnwrap assemblyName.. AppDomain.CurrentDomain.Evidence setup IPlugin plugin IPlugin appDomain.CreateInstanceFromAndUnwrap assemblyName Plugin.MyPlugins.. know which classes in the pluginassembly implements the IPlugin Interface. It should be possible to have more than one Plugin..
|