我越來越想實現在vb.net的接口時,這個錯誤:.NET錯誤:實現屬性必須有匹配的「只讀」或「只寫」符
Public Interface IFoo
ReadOnly Property Foo() As String
End Interface
Public Class myFoo
Implements IFoo
Public ReadOnly Property Foo() As String
Get
return "Foo"
End Get
End Property
...
End Class
缺少什麼?
只是爲了告知C#可以做一些其他的東西http://stackoverflow.com/questions/6341184/why-cant-interface-readonly-properties-be-overriden-in-vb-net-when-it-is-有效的 – kbvishnu 2013-07-24 11:40:09