【问题标题】:How have you used IContainer/ISite/IComponent in your own code? [duplicate]您是如何在自己的代码中使用 IContainer/ISite/IComponent 的? [复制]
【发布时间】:2010-10-27 08:06:20
【问题描述】:

可能重复:
When and why should I implement IComponent, IContainer, and ISite?

有各种关于使用 IContainer 和 ISite 的在线文档(例如 http://www.theserverside.net/tt/blogs/showblog.tss?id=pluginArchitectures),并且有一些模糊的例子,但我还没有遇到一个真正有用的实例(除了 winforms)。我真的不知道它到底可以用来做什么,这无济于事。有没有人在自己的代码中使用 .NET 容器接口和相应的类,独立于 winform,您是如何使用它们的?

【问题讨论】:

    标签: .net architecture containers system.componentmodel


    【解决方案1】:

    这些是面向组件的软件方法中的面向组件的元素。例如,视觉设计师使用它们。

    如果您希望构建可重用的软件组件 (IComponent),并有能力将各个领域的组件调整为 (ISite) 作为规范程序集 (IContainer),特别是在设计时/运行时框架的上下文中(visualstudio) 那么你就在那里......

    【讨论】:

      猜你喜欢
      • 2010-09-21
      • 2011-10-26
      • 1970-01-01
      • 1970-01-01
      • 2019-10-24
      • 2010-09-11
      • 2017-04-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多