Plugin system not casting properly
I'm trying to make a plugin system for my app, which does this:
The
And yes, they both reference the same exact interface, defined in
Lastly, I've tried debugging this and nothing should go wrong. It tries to cast the
The
IPlugin instance is null, so calling plugin.Initialize() throws an NRE. The thing is, it should work just fine, given my plugin code:And yes, they both reference the same exact interface, defined in
GyroShell.Library.Interfaces.Lastly, I've tried debugging this and nothing should go wrong. It tries to cast the
PluginRoot class to an IPlugin, which should work since it properly implements the interface, but it just fails. No exceptions are thrown.


