I know I should use this much more widely, but our code only has a handful of Interfaces, so I'm a bit noob about them. Here's my problem. In file one I have this:
Friend Interface IDateRow
Property Name() As String
...
End Interface
Friend Interface IAmountRow
Property StartDate() As IDateRow
Property EndDate() As IDateRow
...
End Interface
In file 2 I have this:
Friend Class DateRow
Inherits DtaRow
Implements IDateRow
Friend Property Name() As String Implements IDateRow.Name
...
End Class
So far so good. Now...
Friend Class AmountRow
Inherits DtaRow
Implements IAmountRow
Friend Property StartDate() As DateRow Implements IAmountRow.StartDate
This will not work - it says:
'StartDate' cannot implement 'StartDate' because there is no matching property on interface 'IAmountRow'.
Am I correct in thinking this is because it returns a DateRow and not a IDateRow? DateRow implements IDateRow, so it seems like it should be legal.
I know I'm missing something dumb here...