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

MemberDescriptor() protected method

Initializes a new instance of the class with the specified .

protected MemberDescriptor ( MemberDescriptor descr ) : System.Collections
descr MemberDescriptor
return System.Collections
        protected MemberDescriptor(MemberDescriptor descr)
        {
            _name = descr.Name;
            _displayName = _name;
            _nameHash = _name.GetHashCode();

            _attributes = new Attribute[descr.Attributes.Count];
            descr.Attributes.CopyTo(_attributes, 0);

            _attributesFiltered = true;

            _originalAttributes = _attributes;
        }

Same methods

MemberDescriptor::MemberDescriptor ( MemberDescriptor oldMemberDescriptor, Attribute newAttributes ) : System.Collections
MemberDescriptor::MemberDescriptor ( string name ) : System.Collections
MemberDescriptor::MemberDescriptor ( string name, Attribute attributes ) : System.Collections