public class a
{
private int count = 0;
[BrowsableAttribute(true)]
public int Count
{
get
{
return count;
}
set
{
count = value;
}
}
}
public class b: a
{
[BrowsableAttribute(false)]// 重新定义Count属性且不显示
public new int Count
{
get
{
return base.Count;
}
set
{
base.Count = value;
}
}
}