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

MemberDescriptor() protected method

Initializes a new instance of the class with the specified name and attributes array.

protected MemberDescriptor ( string name, Attribute attributes ) : System.Collections
name string
attributes Attribute
return System.Collections
        protected MemberDescriptor(string name, Attribute[] attributes)
        {
            if (name == null || name.Length == 0)
            {
                throw new ArgumentException(SR.InvalidMemberName);
            }

            _name = name;
            _displayName = name;
            _nameHash = name.GetHashCode();

            if (attributes != null)
            {
                _attributes = attributes;
                _attributesFiltered = false;
            }

            _originalAttributes = _attributes;
        }

Same methods

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