System.ComponentModel.MemberDescriptor.CreateAttributeCollection Method

Creates a collection of attributes using the array of attributes passed to the constructor.

Syntax

protected virtual AttributeCollection CreateAttributeCollection ()

Returns

A new System.ComponentModel.AttributeCollection that contains the MemberDescriptor.AttributeArray attributes.

Remarks

This method is called from the MemberDescriptor.Attributes property when there is no System.ComponentModel.AttributeCollection for this member. If there are no attributes in the MemberDescriptor.AttributeArray, this will return an empty System.ComponentModel.AttributeCollection.

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0