如何为桌面应用程序创建模块?

发布于 2024-09-15 23:49:44 字数 84 浏览 2 评论 0原文

在 C# 语言和使用 Sharpdevelop 中,我想知道如何创建一个桌面应用程序,仅在请求时加载功能或表单,而不是在软件启动时加载,例如库之类的东西?

In C# language and using sharpdevelop I was wondering how I can create a desktop application that loads features or forms only when requested and not at software boot, something like libraries?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人疚 2024-09-22 23:49:44

如果将功能编译到单独的程序集中,则在第一次使用它们之前,运行时不会加载它们。

如果您想要更多控制,可以使用 Assembly.Load 和反射来选择要在运行时加载的内容。

If you compile your features into separate assemblies, they will not be loaded by the runtime until the first time they are used.

If you want more control, you can use Assembly.Load and reflection to pick what you want to load at runtime.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文