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

DebugExtendedPropertyDescriptor() public method

public DebugExtendedPropertyDescriptor ( PropertyDescriptor extender, Attribute attributes ) : System.Diagnostics
extender PropertyDescriptor
attributes System.Attribute
return System.Diagnostics
        public DebugExtendedPropertyDescriptor(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");

            
            DebugReflectPropertyDescriptor reflectDesc = attr.ExtenderProperty as DebugReflectPropertyDescriptor;

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

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

Same methods

DebugExtendedPropertyDescriptor::DebugExtendedPropertyDescriptor ( DebugReflectPropertyDescriptor extenderInfo, Type receiverType, IExtenderProvider provider ) : System.Diagnostics
DebugExtendedPropertyDescriptor::DebugExtendedPropertyDescriptor ( DebugReflectPropertyDescriptor extenderInfo, Type receiverType, IExtenderProvider provider, Attribute attributes ) : System.Diagnostics