D
David Veeneman
I'm new to VB.NET, and I am translating an object model from C# to VB.NET,
and I have come across an odd problem implementing an interface.
The interface is a custom interface, IDrillDown, which declares one
read-only property with the following VB.NET signature:
Public ReadOnly Property ActiveText() As String
I have declared the interface in the class declaration, like this:
Public Class CustomerItem
Implements IDrillDown
...
End Class
Later in the class, I implement the interface by by declaring my ActiveText
property:
Public ReadOnly Property ActiveText() As String
Get
Return Me.Name
End Get
End Property
VB.NET is giving me a compile-time error, saying that the class must
implement the ActiveText property for the IDrillDown interface. Needless to
say, I am puzzled, since I have implemented the property with the signature
required by the interface.
Can anyone shed some light on this? Thanks.
and I have come across an odd problem implementing an interface.
The interface is a custom interface, IDrillDown, which declares one
read-only property with the following VB.NET signature:
Public ReadOnly Property ActiveText() As String
I have declared the interface in the class declaration, like this:
Public Class CustomerItem
Implements IDrillDown
...
End Class
Later in the class, I implement the interface by by declaring my ActiveText
property:
Public ReadOnly Property ActiveText() As String
Get
Return Me.Name
End Get
End Property
VB.NET is giving me a compile-time error, saying that the class must
implement the ActiveText property for the IDrillDown interface. Needless to
say, I am puzzled, since I have implemented the property with the signature
required by the interface.
Can anyone shed some light on this? Thanks.