This is an extreme light library for the inverse of control.
Copy "LightIoC.dll" and "LightIoC.dll.config" to the folder of exe。 Set the value of IoCFile in "LightIoC.dll.config" to figure out the file of IoC settings.
Modify the file of IoC settings. An example can be seen in ioc/example.xml "typename" is the Interface or base class. "tnamespace" figures out the namespace of instance. "tclassname" is the name of class of instance. "tassemblyname" is the assembly name.
Add the folder of libs in app.conf as can seen following. This dynamic assembly should be in the main folder.
<runtime >
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="plugins;Template"/>
</assemblyBinding>
</runtime>
while (true)
{
IShut animal = (IShut)Instance.createInstance("IShut");
animal.shut();
Thread.Sleep(1000);
}