第三方控制中的基本类型不符合 CLS

发布于 2024-09-02 07:49:42 字数 186 浏览 2 评论 0原文

我有一个我购买的控件。当我尝试从控件继承时,我收到此消息:

Warning: 'MyNamespace.MyFile': base type 'Mooseworks.UI.MwTextBox' is not CLS-compliant

除了要求我的控件的供应商使其控件符合 CLS 之外,还有其他方法可以解决此问题吗?

I have a control that I purchased. When I tried to inherit from the control I get this message:

Warning: 'MyNamespace.MyFile': base type 'Mooseworks.UI.MwTextBox' is not CLS-compliant

Is there any way around this besides asking the vendor of my control to make their control CLS compliant?

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

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

发布评论

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

评论(1

波浪屿的海角声 2024-09-09 07:49:42

我转到项目的构建选项卡,并在“抑制警告:”部分中添加了 3009。

由于这不是我的代码,因此我对抑制此警告并没有感到太难过。

I went to the build tab of the project and added 3009 in the "Suppress warnings:" section.

As this is not my code I don't feel too bad about suppressing this warning.

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