同一 AppDomain 中 MarshalByRefObject 属性的性能

Performance of MarshalByRefObject Attribute in the same AppDomain

我需要将 MarshalByRefObject 属性添加到某些 类(定义插件的接口)以允许对这些插件进行沙盒处理。 这些 类 也在完全不同的应用程序的 "non-plugin" 上下文中使用,但属性在代码中。如果没有额外的 AppDomain,我是否会在这个其他应用程序中有任何性能损失?

如果从同一个 AppDomain none 调用 MarshalByRefObject 的方法,则应该不会对性能产生重大影响。

考虑到 Control 源自 MarshalByRefObject

,如果有重大影响,WinForms 会遇到很多麻烦