简体   繁体   English

VB.Net IEquatable,访问被拒绝

[英]VB.Net IEquatable, Access Denied

I just have a simple Interface definition in my project, which I haven't even used yet. 我的项目中只有一个简单的Interface定义,我还没有使用过。 But when I try to build the project I get this error: 但是,当我尝试构建项目时,出现此错误:

Access is denied: 'System.IEquatable`1[Reactor.IOptions]'. 访问被拒绝:'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? 有任何想法吗?

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. 一定只是一个Visual Studio打.。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM