用如下模块会使所有属性都不显示    private void SetPropertyVisibility(object obj, string propertyName, bool visible)
    {
      Type type = typeof(BrowsableAttribute);
      PropertyDescriptorCollection props = TypeDescriptor.GetProperties(obj);
      AttributeCollection attrs = props[propertyName].Attributes;
      FieldInfo fld = type.GetField("browsable", BindingFlags.Instance | BindingFlags.NonPublic);
      fld.SetValue(attrs[type], visible);
    }