Hi,
It is posible to hide properties from base class?
sample scenario.
I have a derive class from textbox class and I want to hide the maxlengh property for some reason.
Thanks,
Popskie
Printable View
Hi,
It is posible to hide properties from base class?
sample scenario.
I have a derive class from textbox class and I want to hide the maxlengh property for some reason.
Thanks,
Popskie
This way you shadow the MaxLength in the TextBox class and end user cannot access this propertyCode:private new int MaxLength
{
get
{
return base.MaxLength;
}
}
Thanks.