public override PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes) { if (component == null) return new PropertyDescriptorCollection (new PropertyDescriptor[] {}); return TypeDescriptor.GetProperties (component); }