private PropertyDescriptorCollection ReadProperties(ITypeDescriptorContext context, object realComponent, Attribute[] attributes, object realObject, string name)
        {
            PropertyDescriptorCollection remappedProperties;
            PropertyDescriptorCollection realProperties = DescriptorUtils.GetAllProperties(context, realObject, attributes);

            remappedProperties = DescriptorUtils.RemapComponent(realProperties, realComponent, realObject, name, new ChildTypeConverter());
            return(remappedProperties);
        }
Ejemplo n.º 2
0
        public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object component, Attribute[] attributes)
        {
            PropertyDescriptorCollection propsCollection = DescriptorUtils.GetAllProperties(context, component, attributes);

            return(DescriptorUtils.RemapComponent(propsCollection, component, component, null, null));
        }
 public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
 {
     //return method.GetChildProperties(null, null);
     return(DescriptorUtils.GetAllProperties(null, value, attributes));
 }