【发布时间】:2015-11-11 12:23:53
【问题描述】:
我们最近在我们的解决方案中遇到了一个与此类似的界面。当我们升级到 VS 2015 时,它会导致构建问题。我们相信删除代码是安全的,但希望确保没有其他人能想到为什么这会是有效的代码,或者更改的代码不安全(我们会删除所有这些的实现)?
Public Interface IMyInterface
Property p1 as string Implements IMyInterface.p1
Property p2 as string Implements IMyInterface.p2
Property p3 as string Implements IMyInterface.p3
Property p4 as string Implements IMyInterface.p4
.
.
.
End Interface
只是不确定接口方法为什么或如何实现自身的属性。
【问题讨论】:
-
什么是“构建问题”,您有错误吗?
-
是的。这是一个构建错误。 VS 2015 安装在同事的计算机上,他目前不在办公桌旁,所以我无法为您提供错误号。他回来后我会重新发布
-
@the_lotus 我收到错误代码
BC30273 'Implements' is not valid on an interface property declaration,在执行google search 时几乎什么也没有 -
嗯,该代码在 2013 年有效,似乎是新事物,但我没有任何来源可以确认。也许this could help(看起来这不应该起作用)