System.ComponentModel.MemberDescriptor.FillAttributes C# (CSharp) Méthode

FillAttributes() protected méthode

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
Résultat void
        protected virtual void FillAttributes(IList attributeList)
        {
            if (_originalAttributes != null)
            {
                foreach (Attribute attr in _originalAttributes)
                {
                    attributeList.Add(attr);
                }
            }
        }