vb.net에서 인터페이스를 구현하려고 할 때이 오류가 발생합니다..net 오류 : 구현 속성이 'ReadOnly'또는 'WriteOnly'지정자와 일치해야합니다.
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