/// <summary> /// Constructor</summary> /// <param name="masterDescriptor">Master descriptor to serve as template. /// Name, PropertyType, Category, Description, ReadOnly, Editor, Converter /// and Attributes of this descriptor are all used.</param> public MultiPropertyDescriptor(SysPropertyDescriptor masterDescriptor) : base( masterDescriptor.Name, masterDescriptor.PropertyType, masterDescriptor.Category, masterDescriptor.Description, masterDescriptor.IsReadOnly, masterDescriptor.GetEditor(typeof(object)), masterDescriptor.Converter, masterDescriptor.Attributes.Cast <Attribute>().ToArray()) { m_key = masterDescriptor.GetPropertyDescriptorKey(); }
/// <summary> /// Constructor</summary> /// <param name="masterDescriptor">Master descriptor to serve as template. /// Name, PropertyType, Category, Description, ReadOnly, Editor, Converter /// and Attributes of this descriptor are all used.</param> public MultiPropertyDescriptor(SysPropertyDescriptor masterDescriptor) : base( masterDescriptor.Name, masterDescriptor.PropertyType, masterDescriptor.Category, masterDescriptor.Description, masterDescriptor.IsReadOnly, masterDescriptor.GetEditor(typeof(object)), masterDescriptor.Converter, masterDescriptor.Attributes.Cast<Attribute>().ToArray()) { m_key = masterDescriptor.GetPropertyDescriptorKey(); }