System.ComponentModel.ExtendedPropertyDescriptor.ExtendedPropertyDescriptor C# (CSharp) Method

ExtendedPropertyDescriptor() public method

public ExtendedPropertyDescriptor ( PropertyDescriptor extender, Attribute attributes ) : Microsoft.Win32
extender PropertyDescriptor
attributes Attribute
return Microsoft.Win32
        public ExtendedPropertyDescriptor(PropertyDescriptor extender,  Attribute[] attributes) : base(extender, attributes) {
            Debug.Assert(extender != null, "The original PropertyDescriptor must be non-null");
            
            ExtenderProvidedPropertyAttribute attr = extender.Attributes[typeof(ExtenderProvidedPropertyAttribute)] as ExtenderProvidedPropertyAttribute;

            Debug.Assert(attr != null, "The original PropertyDescriptor does not have an ExtenderProvidedPropertyAttribute");

            
            ReflectPropertyDescriptor reflectDesc = attr.ExtenderProperty as ReflectPropertyDescriptor;

            Debug.Assert(reflectDesc != null, "The original PropertyDescriptor has an invalid ExtenderProperty");

            this.extenderInfo = reflectDesc;
            this.provider = attr.Provider;
        }

Same methods

ExtendedPropertyDescriptor::ExtendedPropertyDescriptor ( ReflectPropertyDescriptor extenderInfo, Type receiverType, IExtenderProvider provider, Attribute attributes ) : Microsoft.Win32