Martin, this might not apply to your situation, but what about making the
scope of the base property be Friend? This way, they wouldn't be available
outside the assembly, but could be referenced by derived classes within the
assembly.
For example, in my ID3 tag reading library, I have a base ID3TextFrame which
represents all of the frame types that have a Text property. (An ID3 frame
is just a set of values associated to a particular metadata component, like
Artist or Comments.) This allows me to have common code that decodes these
frame types and sets the Text property, even though in most cases, I don't
want the users of the library to access the Text property directly.
So, the base class property (ID3TextFrame.Text) is a Friend and I expose the
value with a public property in a derived class with a name and data type
that is specific to that frame. For example, ID3TrackNumFrame.TrackNum is a
Public Short property.
Again, this may not apply to you, but it's one way to "hide" a base class
property.
Mitchell S. Honnert
www.UltraID3Lib.com
"Martin Widmer" <ma***********@businessnet.de> wrote in message
news:dr**********@nntp.init7.net...
Hello!
I would like to hide one property of a base class in a derived class. How
could it be done? I tried to override it with a private property, but that
doesn't seem to do the hiding.
Martin