VB.Net IEquatable,拒绝访问

发布于 2024-08-07 09:09:35 字数 623 浏览 5 评论 0原文

我的项目中只有一个简单的接口定义,我什至还没有使用过。但是,当我尝试构建项目时,出现此错误:

访问被拒绝:'System.IEquatable`1[Reactor.IOptions]'。

下面是界面:

    Interface IOptions
            Inherits Xml.Serialization.IXmlSerializable             ' Optoins Should Serialize to XML
            Inherits System.Runtime.Serialization.ISerializable     ' Options should implement .net Serialization
            Inherits System.ICloneable                              ' Must be able to copy options
            Inherits System.IEquatable(Of IOptions)                 ' Must be able to compare opitons
    End Interface

有什么想法吗?

I just have a simple Interface definition in my project, which I haven't even used yet. But when I try to build the project I get this error:

Access is denied: 'System.IEquatable`1[Reactor.IOptions]'.

Below is the interface:

    Interface IOptions
            Inherits Xml.Serialization.IXmlSerializable             ' Optoins Should Serialize to XML
            Inherits System.Runtime.Serialization.ISerializable     ' Options should implement .net Serialization
            Inherits System.ICloneable                              ' Must be able to copy options
            Inherits System.IEquatable(Of IOptions)                 ' Must be able to compare opitons
    End Interface

Any Ideas?

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

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

发布评论

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

评论(1

无法言说的痛 2024-08-14 09:09:35

不知道发生了什么,但在更改了一堆内容然后将其改回错误自行解决的方式之后。一定是 Visual Studio 出了问题。

Not sure what happend but after changing a bunch of stuff and then chaning it back to the way it was the error resoveled itself. Must have just been a Visual Studio hiccup.

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