B
Brad Figler
Here is my setup:
I want a plugin interface for my application.
I have my main app named App.exe
I have a plugin interface assembly named PluginInterface.dll (defines
IPluginInterface)
I have a plugin implementation named PluginTest.dll (defines TestClass)
In my application I simply do the following:
Assembly myAssembly = Assembly.LoadFile( "PluginTest.dll" );
IPluginInterface plugin = (IPluginInterface)myAssembly.CreateInstance(
"TestClass" );
plugin.Test() (one of the methods specified in the plugin interface).
I compile the code and I get the following:
MyApp.exe
PluginInterface.dll
PluginTest.dll
If I delete PluginInterface, My code won't run. Is there a way to
specify an interface w/o having to actually deploy a dll that just has
an interface specification in it?
Thanks,
Brad
I want a plugin interface for my application.
I have my main app named App.exe
I have a plugin interface assembly named PluginInterface.dll (defines
IPluginInterface)
I have a plugin implementation named PluginTest.dll (defines TestClass)
In my application I simply do the following:
Assembly myAssembly = Assembly.LoadFile( "PluginTest.dll" );
IPluginInterface plugin = (IPluginInterface)myAssembly.CreateInstance(
"TestClass" );
plugin.Test() (one of the methods specified in the plugin interface).
I compile the code and I get the following:
MyApp.exe
PluginInterface.dll
PluginTest.dll
If I delete PluginInterface, My code won't run. Is there a way to
specify an interface w/o having to actually deploy a dll that just has
an interface specification in it?
Thanks,
Brad