System.ComponentModel.MemberDescriptor.FillAttributes C# (CSharp) Method

FillAttributes() protected method

In an inheriting class, adds the attributes of the inheriting class to the specified list of attributes in the parent class. For duplicate attributes, the last one added to the list will be kept.

protected FillAttributes ( IList attributeList ) : void
attributeList IList
return void
        protected virtual void FillAttributes(IList attributeList)
        {
            if (_originalAttributes != null)
            {
                foreach (Attribute attr in _originalAttributes)
                {
                    attributeList.Add(attr);
                }
            }
        }