326 {
327 PropertyDescriptorCollection propertyDescriptorCollection = new PropertyDescriptorCollection(null);
328 if (!(
value is DesignerOptionCollection designerOptionCollection))
329 {
330 return propertyDescriptorCollection;
331 }
332 foreach (DesignerOptionCollection
item in designerOptionCollection)
333 {
334 propertyDescriptorCollection.Add(
new OptionPropertyDescriptor(
item));
335 }
336 foreach (PropertyDescriptor property in designerOptionCollection.Properties)
337 {
338 propertyDescriptorCollection.Add(property);
339 }
340 return propertyDescriptorCollection;
341 }