Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property inheritance
Message
From
28/07/2006 06:02:25
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01141012
Message ID:
01141014
Views:
17
Update. Marking the base class mutator as protected and using a new Guid property in the sub-class is the closest I've found:
>   public class BaseClass
>    {
>        protected Guid _guid;
>        public virtual Guid Guid
>        {
>            get { return _guid; }
>            protected set { }             //Needs to be R/O
>        }
>    }
>
>     public class Class2 : BaseClass
>    {
>          public new Guid Guid
>         {
>             get
>             {
>                return base.Guid;
>             }
>             set { _guid = value; }
>         }
>     }
>
Any alternative suggestions ?
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform