System with plugins in C#

后端 未结 7 1930
臣服心动
臣服心动 2020-12-09 13:08

I have to develop a system to monitor sensor information, but many sensors might be added in the future.

That said, the idea would be to develop a system that would

7条回答
  •  时光说笑
    2020-12-09 13:14

    We once made a plug-in system in a school project of ours in 2006, Socio. You can find the code here and here.

    The basic lesson learned was that it is very simply to dynamically load code in C#. If you just have a plugin DLL and an application which adheres to an interface of yours and links against a common DLL in which that interface exists, it just works™.

    In essence, it is what plinth described in his answer.

提交回复
热议问题