J
James.R.Thigpen
I am trying to create a read-only interface for an object.
Say I have a Part, which I want to Implement IReadOnlyPart.
IReadOnlyPart will have
ReadOnly Property PartNumber() As String
And I *want* Part to have
Public Property PartNumber() As String Implements
IPart.PartNumber
Get
Return partNumberValue
End Get
Set(ByVal value As String)
partNumberValue = value
End Set
End Property
But that is a compile error "Error 72 'PartNumber' cannot implement
'PartNumber' because there is no matching property on interface
'IPart'."
Is there any way to get this to work or is this simply not How Things
Are Done.
Thanks,
James Thigpen
Say I have a Part, which I want to Implement IReadOnlyPart.
IReadOnlyPart will have
ReadOnly Property PartNumber() As String
And I *want* Part to have
Public Property PartNumber() As String Implements
IPart.PartNumber
Get
Return partNumberValue
End Get
Set(ByVal value As String)
partNumberValue = value
End Set
End Property
But that is a compile error "Error 72 'PartNumber' cannot implement
'PartNumber' because there is no matching property on interface
'IPart'."
Is there any way to get this to work or is this simply not How Things
Are Done.
Thanks,
James Thigpen