VB.Net IEquatable,拒绝访问
我的项目中只有一个简单的接口定义,我什至还没有使用过。但是,当我尝试构建项目时,出现此错误:
访问被拒绝:'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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不知道发生了什么,但在更改了一堆内容然后将其改回错误自行解决的方式之后。一定是 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.