C#中的插件框架 [英] Plugin framework in c#

查看:108
本文介绍了C#中的插件框架的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要了解插件框架及其工作原理.谁能向我解释...

在此先感谢

Hi All,

I need to know about plug-in framework and its working. Can anyone explain it to me...

Thanks in advance

推荐答案

看看Microsoft Unity框架:创建使用可重载插件的WPF应用程序... [ ^ ],
AppDomain拒绝加载程序集 [使用CodeDom生成代码 [创建使用可重载插件的WPF应用程序... [ ^ ],
动态加载用户控件 [
Take a look at Microsoft Unity framework: http://msdn.microsoft.com/en-us/library/ff660926%28v=pandp.20%29.aspx[^].

Also, please see my past solutions on the topic:

Create WPF Application that uses Reloadable Plugins...[^],
AppDomain refuses to load an assembly[^],
code generating using CodeDom[^],
Create WPF Application that uses Reloadable Plugins...[^],
Dynamically Load User Controls[^].

Ask your question with explanation of what do you want to achieve, more exactly.

—SA


插件是一个非常宽泛的术语.
从插入模块到整个应用程序,这可能意味着任何事情.

有关表单的简单示例-请参见
使用C#的插件体系结构 [这里 [ ^ ].
Plugin is a very broad term.
It could mean anything from plugging in a module to an entire application.

For a simple example on forms - see Plugin Architecture using C#[^].

Are you talking about any specific plugin?

Or do you want to design your own plugin framework - see here[^].


一个插件框架通常可以通过实现您的核心项目中定义的接口来工作.要动态加载类型,您需要使用反射.这是对您模糊问题的尽可能精确的答案.
A plug in framework typically works by implementing interfaces defined in your core project, I''d expect. To load types dynamically, you''d need to use reflection. That''s as precise an answer as is possible to your vague question.


这篇关于C#中的插件框架的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆