Just a idea. Not the prettiest solution to your problem but it will work.
The users of your class can only set it it, and they can only instantiate
the public class. Let me know if this work.
Friend Class TestGetSet
Public Property TestGetSet() As Boolean
Get
End Get
Set(ByVal Value As Boolean)
End Set
End Property
End Class
Public Class TestReadOnly
Shadows ReadOnly Property TestGetSet() As Boolean
Get
End Get
End Property
End Class
Chris
"ThunderMusic" <NO*******@sympatico.caSPAMATALL> wrote in message
news:ut**************@TK2MSFTNGP12.phx.gbl...
Hi,
The behavior I want to have is the following. For a property of my
class, I want the derived classes to be able to set it, but I don't want
instances of the class to be able to set it. I tried to split the property
by puting the Get section in public and the set section in protected, but
it
is not allowed by the compiler. Is there a solution?
thanks