Hi there,
I had some doubts on creatings plugins.
As most example on the internet shows how to write plugins onto a plugin
host which is normally a windows form program.
1) Can i replace plugin host as class libraries instead of windows forms
program?
2) If it is just a class library, then why plugins? I can just write an
abstract class and let the 3rd party inherit from it, and write something on
my class? Then why plugins, so complicated?
Can anyone enlighten me? I can't think what so special with plugin on this
case?
The major reasons is that i am developing a new framework (or many chunks of
libraries integrated into 1 namespace). Once it is done, i do not plan to
code anymore. If in future, whoever want to add functionalities to the
framework, just write plugins and plug into this framework. But i am kind of
mix up, and why can't i just write a new library and inherit from the
abstract class.
Example:
Framework
-------------
Parent abstrac class - Dad.cs
Child class inherit from parent - Son1.cs, Son2.cs, Son3.cs
(compiled into DadFramework.dll)
In future:
I had a new class - Son4.cs
public class Son4 : Dad
{
// had all Dad implementation
}
So why plugins again?
Please help! Thanks.
--
Regards,
Chua Wen Ching :)