How can I hide some not virtual properties of parent class in PropertyGridControl
without using [Browsable(false)]
? I can not use this, because I can not override not virtual properties.
If you cannot override the property then you can use new
modifier.
Here is example:
public class SomeChildClass : SomeParentClass
{
[Browsable(false)]
new public TypeOfProperty SomeProperty
{
get { return base.SomeProperty; }
set { base.SomeProperty = value; }
}
}